diff -r 9d67172bb323 -r 56aed3578628 TCP/TCPEndpoint.h --- a/TCP/TCPEndpoint.h Fri May 23 17:37:36 2008 -0700 +++ b/TCP/TCPEndpoint.h Sun Jul 13 10:53:46 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.