diff -r 3af1d1c0ceb5 -r df9da0f6b358 MYCertificate.m --- a/MYCertificate.m Sun Apr 19 21:19:35 2009 -0700 +++ b/MYCertificate.m Fri Jun 05 08:57:18 2009 -0700 @@ -8,6 +8,7 @@ #import "MYCertificate.h" #import "MYCrypto_Private.h" +#import "MYIdentity.h" #import "MYDigest.h" #import "MYErrorUtils.h" @@ -103,6 +104,10 @@ return key; } +- (MYIdentity*) identity { + return [[[MYIdentity alloc] initWithCertificateRef: _certificateRef] autorelease]; +} + - (NSString*) commonName { CFStringRef name = NULL; if (!check(SecCertificateCopyCommonName(_certificateRef, &name),