Re: Configure socket used by NSURLConnection?
Re: Configure socket used by NSURLConnection?
- Subject: Re: Configure socket used by NSURLConnection?
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Tue, 29 Jul 2014 18:11:40 +0100
On 29 Jul 2014, at 16:31, Jeffrey Walton <email@hidden> wrote:
> I'm trying to set cipher suites on an SSL/TLS connection before using NSURLConnection and delegate.
That's not possible. As Jens pointed out, there's no one-to-one relationship between NSURLConnection requests and the sockets they go over, which makes this sort of thing impossible in the NSURLConnection space.
There is some support for this sort of thing in NSURLSession. Specifically, you can configure the TLS protocol version using the TLSMinimumSupportedProtocol and TLSMaximumSupportedProtocol properties of the configuration used to create the session. Alas, there's no control over cypher suites.
The highest level API that supports customisable cypher suites is CFSocketStream. With that you can get the Secure Transport context (kCFStreamPropertySSLContext) and tweak things from there. Alas, getting HTTP to run on top of that is somewhat challenging, especially if you're looking for standards compliant HTTP 1.1 support.
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden