1.1 --- a/MYKeychain.m Sat Apr 04 20:42:03 2009 -0700
1.2 +++ b/MYKeychain.m Tue Apr 07 10:56:58 2009 -0700
1.3 @@ -10,7 +10,7 @@
1.4 #import "MYCrypto_Private.h"
1.5 #import "MYDigest.h"
1.6
1.7 -#if !USE_IPHONE_API
1.8 +#if !MYCRYPTO_USE_IPHONE_API
1.9
1.10
1.11 @interface MYKeyEnumerator : NSEnumerator
1.12 @@ -97,6 +97,12 @@
1.13 [super dealloc];
1.14 }
1.15
1.16 +- (void) finalize
1.17 +{
1.18 + if (_keychain) CFRelease(_keychain);
1.19 + [super finalize];
1.20 +}
1.21 +
1.22
1.23 + (MYKeychain*) allKeychains
1.24 {
1.25 @@ -321,7 +327,7 @@
1.26 }
1.27
1.28 - (MYKeyPair*) generateRSAKeyPairOfSize: (unsigned)keySize {
1.29 - return [MYKeyPair _generateRSAKeyPairOfSize: keySize inKeychain: self.keychainRefOrDefault];
1.30 + return [MYKeyPair _generateRSAKeyPairOfSize: keySize inKeychain: self];
1.31 }
1.32
1.33
1.34 @@ -367,6 +373,13 @@
1.35 [super dealloc];
1.36 }
1.37
1.38 +- (void) finalize
1.39 +{
1.40 + [_keychain release];
1.41 + if (_search) CFRelease(_search);
1.42 + [super finalize];
1.43 +}
1.44 +
1.45
1.46 - (id) nextObject {
1.47 if (!_search)
1.48 @@ -416,7 +429,7 @@
1.49 @end
1.50
1.51
1.52 -#endif !USE_IPHONE_API
1.53 +#endif !MYCRYPTO_USE_IPHONE_API
1.54
1.55
1.56