diff -r 9d67172bb323 -r 710113961756 TCP/TCPEndpoint.h --- a/TCP/TCPEndpoint.h Fri May 23 17:37:36 2008 -0700 +++ b/TCP/TCPEndpoint.h Tue Jun 03 22:24:21 2008 -0700 @@ -7,13 +7,23 @@ // #import +#if TARGET_OS_IPHONE +#include +#else #import +#endif // SSL properties: #define kTCPPropertySSLCertificates ((NSString*)kCFStreamSSLCertificates) #define kTCPPropertySSLAllowsAnyRoot ((NSString*)kCFStreamSSLAllowsAnyRoot) -extern NSString* const kTCPPropertySSLClientSideAuthentication; // value is SSLAuthenticate enum + +extern NSString* const kTCPPropertySSLClientSideAuthentication; // value is TCPAuthenticate enum +typedef enum { + kTCPNeverAuthenticate, /* skip client authentication */ + kTCPAlwaysAuthenticate, /* require it */ + kTCPTryAuthenticate /* try to authenticate, but not error if client has no cert */ +} TCPAuthenticate; // these MUST have same values as SSLAuthenticate enum in SecureTransport.h! /** Abstract base class of TCPConnection and TCPListener.