TCP/TCPConnection.m
changeset 27 92581f26073e
parent 25 a4875607a3a0
child 29 59689fbdcf77
     1.1 --- a/TCP/TCPConnection.m	Tue Dec 02 22:42:56 2008 -0800
     1.2 +++ b/TCP/TCPConnection.m	Fri Apr 24 10:10:32 2009 -0700
     1.3 @@ -14,7 +14,7 @@
     1.4  #import "ExceptionUtils.h"
     1.5  
     1.6  
     1.7 -#if TARGET_OS_IPHONE && TARGET_OS_EMBEDDED
     1.8 +#if TARGET_OS_IPHONE && !defined(__SEC_TYPES__)
     1.9  // SecureTransport.h is missing on iPhone, with its SSL constants:
    1.10  enum{
    1.11      errSSLClosedAbort 			= -9806,	/* connection closed via error */
    1.12 @@ -348,7 +348,7 @@
    1.13                      allow = NO; // Server MUST have a cert!
    1.14                  else {
    1.15                      SecCertificateRef cert = certs.count ?(SecCertificateRef)[certs objectAtIndex:0] :NULL;
    1.16 -                    LogTo(TCP,@"%@: Peer cert = %@",self,cert);
    1.17 +                    LogTo(TCP,@"%@: Peer cert = %@",self,[TCPEndpoint describeCert: cert]);
    1.18                      if( [_delegate respondsToSelector: @selector(connection:authorizeSSLPeer:)] )
    1.19                          allow = [_delegate connection: self authorizeSSLPeer: cert];
    1.20                  }