Re: using kCFStreamPropertySSLSettings for CFStreams on 10.4
Re: using kCFStreamPropertySSLSettings for CFStreams on 10.4
- Subject: Re: using kCFStreamPropertySSLSettings for CFStreams on 10.4
- From: Greg Robbins <email@hidden>
- Date: Fri, 22 Jul 2005 10:48:47 -0700
At 9:07 AM -0700 7/22/05, Jeremy Wyld wrote:
Once you set the property for SSL, the stream is only SSL. Could it
be that the protocol you are using is not yet ready for SSL? As
soon as the property is set, the stream is talking SSL from that
point onward.
If the other side isn't prepared for that situation and it's sending
bytes that are not part of the SSL stream, you'll get the protocol
error.
Since my CFReadStream code is used for SSL and unencrypted
connections, at what point can the code know that it is safe to set
the kCFStreamPropertySSLSettings property without causing the read to
fail?
You can always use SecureTransport directly. To use it, you simply
provide I/O functions and perform a few calls. It makes SSL rather
easy.
Are there any code samples showing use of SecureTransport calls
directly with CFStreams?
Greg Robbins
_______________________________________________
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