TCP/TCPConnection.m
changeset 58 6577813acf12
parent 48 2b4ad2067074
     1.1 --- a/TCP/TCPConnection.m	Sat May 16 14:24:06 2009 -0700
     1.2 +++ b/TCP/TCPConnection.m	Fri Jul 03 17:50:28 2009 -0700
     1.3 @@ -361,7 +361,8 @@
     1.4                      allow = NO; // Server MUST have a cert!
     1.5                  else {
     1.6                      SecCertificateRef cert = certs.count ?(SecCertificateRef)[certs objectAtIndex:0] :NULL;
     1.7 -                    LogTo(TCP,@"%@: Peer cert = %@",self,[TCPEndpoint describeCert: cert]);
     1.8 +                    if ([TCPEndpoint respondsToSelector: @selector(describeCert:)])
     1.9 +                        LogTo(TCP,@"%@: Peer cert = %@",self,[TCPEndpoint describeCert: cert]);
    1.10                      if( [_delegate respondsToSelector: @selector(connection:authorizeSSLPeer:)] )
    1.11                          allow = [_delegate connection: self authorizeSSLPeer: cert];
    1.12                  }