diff -r cb9cdf247239 -r 6577813acf12 TCP/TCPEndpoint.m --- a/TCP/TCPEndpoint.m Wed Apr 22 16:45:39 2009 -0700 +++ b/TCP/TCPEndpoint.m Fri Jul 03 17:50:28 2009 -0700 @@ -69,37 +69,6 @@ } -+ (NSString*) describeCert: (SecCertificateRef)cert { - if (!cert) - return @"(null)"; - NSString *desc; -#if TARGET_OS_IPHONE && !defined(__SEC_TYPES__) - CFStringRef summary = NULL; - SecCertificateCopySubjectSummary(cert); - desc = $sprintf(@"Certificate[%@]", summary); - if(summary) CFRelease(summary); -#else - CFStringRef name=NULL; - CFArrayRef emails=NULL; - SecCertificateCopyCommonName(cert, &name); - SecCertificateCopyEmailAddresses(cert, &emails); - desc = $sprintf(@"Certificate[\"%@\", <%@>]", - name, [(NSArray*)emails componentsJoinedByString: @">, <"]); - if(name) CFRelease(name); - if(emails) CFRelease(emails); -#endif - return desc; -} - -+ (NSString*) describeIdentity: (SecIdentityRef)identity { - if (!identity) - return @"(null)"; - SecCertificateRef cert; - SecIdentityCopyCertificate(identity, &cert); - return $sprintf(@"Identity[%@]", [self describeCert: cert]); -} - - @end