Re: Configure socket used by NSURLConnection?
Re: Configure socket used by NSURLConnection?
- Subject: Re: Configure socket used by NSURLConnection?
- From: Jeffrey Walton <email@hidden>
- Date: Tue, 29 Jul 2014 14:46:06 -0400
On Jul 29, 2014, at 1:11 PM, "Quinn \"The Eskimo!\"" <email@hidden> wrote:
>
> 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.
Yeah, you and Jens are not going to get an invitation to barbecue at my place :)
> 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.
OK, thanks.
Its too bad the high level objects like NSURLConnection don't take a CFSocketStream. I'm kinda lazy, and I like using NSURLConnection and friends. Not taking it creates a lot of work for me unless I look into re-using some OpenSSL code.
Jeff
_______________________________________________
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