MYCertificate.m
changeset 20 df9da0f6b358
parent 14 3af1d1c0ceb5
child 21 2c300b15b381
     1.1 --- a/MYCertificate.m	Sun Apr 19 21:19:35 2009 -0700
     1.2 +++ b/MYCertificate.m	Fri Jun 05 08:57:18 2009 -0700
     1.3 @@ -8,6 +8,7 @@
     1.4  
     1.5  #import "MYCertificate.h"
     1.6  #import "MYCrypto_Private.h"
     1.7 +#import "MYIdentity.h"
     1.8  #import "MYDigest.h"
     1.9  #import "MYErrorUtils.h"
    1.10  
    1.11 @@ -103,6 +104,10 @@
    1.12      return key;
    1.13  }
    1.14  
    1.15 +- (MYIdentity*) identity {
    1.16 +    return [[[MYIdentity alloc] initWithCertificateRef: _certificateRef] autorelease];
    1.17 +}
    1.18 +
    1.19  - (NSString*) commonName {
    1.20      CFStringRef name = NULL;
    1.21      if (!check(SecCertificateCopyCommonName(_certificateRef, &name),