diff -r 1dfe820d7ebe -r f4709533c816 MYPrivateKey.m --- a/MYPrivateKey.m Wed Apr 08 16:30:52 2009 -0700 +++ b/MYPrivateKey.m Thu Apr 09 21:36:21 2009 -0700 @@ -9,6 +9,7 @@ #import "MYPrivateKey.h" #import "MYCrypto_Private.h" #import "MYDigest.h" +#import "MYCertGen.h" #import @@ -114,6 +115,12 @@ return [self _initWithKeyRef: privateKey publicKeyData: pubKeyData forKeychain: keychain]; } + +- (MYIdentity*) createSelfSignedIdentityWithAttributes: (NSDictionary*)attributes { + return MYIdentityCreateSelfSigned(self, attributes); +} + + #endif