1.1 --- a/TCP/TCPEndpoint.m Wed Apr 22 16:45:39 2009 -0700
1.2 +++ b/TCP/TCPEndpoint.m Fri Jul 03 17:50:28 2009 -0700
1.3 @@ -69,37 +69,6 @@
1.4 }
1.5
1.6
1.7 -+ (NSString*) describeCert: (SecCertificateRef)cert {
1.8 - if (!cert)
1.9 - return @"(null)";
1.10 - NSString *desc;
1.11 -#if TARGET_OS_IPHONE && !defined(__SEC_TYPES__)
1.12 - CFStringRef summary = NULL;
1.13 - SecCertificateCopySubjectSummary(cert);
1.14 - desc = $sprintf(@"Certificate[%@]", summary);
1.15 - if(summary) CFRelease(summary);
1.16 -#else
1.17 - CFStringRef name=NULL;
1.18 - CFArrayRef emails=NULL;
1.19 - SecCertificateCopyCommonName(cert, &name);
1.20 - SecCertificateCopyEmailAddresses(cert, &emails);
1.21 - desc = $sprintf(@"Certificate[\"%@\", <%@>]",
1.22 - name, [(NSArray*)emails componentsJoinedByString: @">, <"]);
1.23 - if(name) CFRelease(name);
1.24 - if(emails) CFRelease(emails);
1.25 -#endif
1.26 - return desc;
1.27 -}
1.28 -
1.29 -+ (NSString*) describeIdentity: (SecIdentityRef)identity {
1.30 - if (!identity)
1.31 - return @"(null)";
1.32 - SecCertificateRef cert;
1.33 - SecIdentityCopyCertificate(identity, &cert);
1.34 - return $sprintf(@"Identity[%@]", [self describeCert: cert]);
1.35 -}
1.36 -
1.37 -
1.38 @end
1.39
1.40