1.1 --- a/TCP/TCPEndpoint.h Fri May 23 17:37:36 2008 -0700
1.2 +++ b/TCP/TCPEndpoint.h Thu Jun 19 16:22:05 2008 -0700
1.3 @@ -7,13 +7,23 @@
1.4 //
1.5
1.6 #import <Foundation/Foundation.h>
1.7 +#if TARGET_OS_IPHONE
1.8 +#include <CFNetwork/CFSocketStream.h>
1.9 +#else
1.10 #import <CoreServices/CoreServices.h>
1.11 +#endif
1.12
1.13
1.14 // SSL properties:
1.15 #define kTCPPropertySSLCertificates ((NSString*)kCFStreamSSLCertificates)
1.16 #define kTCPPropertySSLAllowsAnyRoot ((NSString*)kCFStreamSSLAllowsAnyRoot)
1.17 -extern NSString* const kTCPPropertySSLClientSideAuthentication; // value is SSLAuthenticate enum
1.18 +
1.19 +extern NSString* const kTCPPropertySSLClientSideAuthentication; // value is TCPAuthenticate enum
1.20 +typedef enum {
1.21 + kTCPNeverAuthenticate, /* skip client authentication */
1.22 + kTCPAlwaysAuthenticate, /* require it */
1.23 + kTCPTryAuthenticate /* try to authenticate, but not error if client has no cert */
1.24 +} TCPAuthenticate; // these MUST have same values as SSLAuthenticate enum in SecureTransport.h!
1.25
1.26
1.27 /** Abstract base class of TCPConnection and TCPListener.