I went back and looked into some earlier code of mine that can do this (the 
MYNetwork framework, available on Github). The good news is that I know what 
stream property to set. The bad news is that it’s not in any public header, 
even though this omission has been known for five years or more. And the really 
bad news is that using the constant this way will invalidate your app from the 
iOS or Mac app store :(

#if !TARGET_OS_IPHONE
// You can't do client-side SSL auth using CFStream without this constant,
// but it was accidentally not declared in a public header.
// Unfortunately you can't use this on iPhone without Apple rejecting your app
// for using "private API". :-(
extern const CFStringRef _kCFStreamPropertySSLClientSideAuthentication; // in 
CFNetwork
#endif

—Jens
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to