Re: CFNetwork support for SSL
Re: CFNetwork support for SSL
- Subject: Re: CFNetwork support for SSL
- From: Jeremy Wyld <email@hidden>
- Date: Fri, 17 Dec 2004 10:30:36 -0800
Are you trying to be server-side or client-side of the SSL connection?
Currently, only client-side support is available through
CFSocketStream. If you want server-side, you'll need to use
SecureTransport directly from on top of CFSocketStream.
Calling CFWriteStreamSetProperty as you're doing is correct. Are you
sure there are no bytes in the read buffer that are not part of the SSL
protocol?
That would cause a protocol error.
jeremy
On Dec 16, 2004, at 8:24 AM, Jeff Heyob wrote:
Hi,
CFNetwork has been great in porting my old OpenTransport code into
run-loops on OSX. I've seen some really good speed improvements. Now,
I would like to that the next step and support SSL with my
client-server application suite in moving large amounts of data across
the internet. All of the sample code that I have been able to find is
command line oriented and I can't see how to use it with the CFNetwork
code that I have already in place.
The only thing that I can see from a CFNetwork point of view is to use:
CFWriteStreamSetProperty
(outStream,kCFStreamPropertySocketSecurityLevel,
kCFStreamSocketSecurityLevelNegotiatedSSL);
on my open pair of network streams, but this just causes an
error=-9800 which is errSSLProtocol.
I really new at this and I need help from the SSL certificate creation
and up. Any sample code that someone could direct me to would be
greatly appreciated.
Thanks in advance,
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
_______________________________________________
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