• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: using kCFStreamPropertySSLSettings for CFStreams on 10.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: using kCFStreamPropertySSLSettings for CFStreams on 10.4
      • From: Jeremy Wyld <email@hidden>
References: 
 >using kCFStreamPropertySSLSettings for CFStreams on 10.4 (From: Greg Robbins <email@hidden>)
 >Re: using kCFStreamPropertySSLSettings for CFStreams on 10.4 (From: Jeremy Wyld <email@hidden>)

  • Prev by Date: Re: using kCFStreamPropertySSLSettings for CFStreams on 10.4
  • Next by Date: Re: using kCFStreamPropertySSLSettings for CFStreams on 10.4
  • Previous by thread: Re: using kCFStreamPropertySSLSettings for CFStreams on 10.4
  • Next by thread: Re: using kCFStreamPropertySSLSettings for CFStreams on 10.4
  • Index(es):
    • Date
    • Thread