1.1 --- a/MYKey.m Sat Jun 06 15:01:28 2009 -0700
1.2 +++ b/MYKey.m Wed Jun 10 09:02:18 2009 -0700
1.3 @@ -26,7 +26,7 @@
1.4 forKeychain: (SecKeychainRef)keychain {
1.5 Assert(keyData!=nil);
1.6 SecKeyImportExportParameters params = {};
1.7 - SecKeyRef key = importKey(keyData, self.keyType, keychain, ¶ms);
1.8 + SecKeyRef key = importKey(keyData, self.keyClass, keychain, ¶ms);
1.9 if (!key) {
1.10 [self release];
1.11 return nil;
1.12 @@ -45,10 +45,15 @@
1.13 return $sprintf(@"%@[%@ /%p]", [self class], (self.name ?:@""), self.keychainItemRef);
1.14 }
1.15
1.16 -- (SecExternalItemType) keyType {
1.17 +- (SecExternalItemType) keyClass {
1.18 AssertAbstractMethod();
1.19 }
1.20
1.21 +#if MYCRYPTO_USE_IPHONE_API
1.22 +- (SecExternalItemType) keyType {
1.23 + return NULL;
1.24 +}
1.25 +#endif
1.26
1.27 - (SecKeyRef) keyRef {
1.28 return (SecKeyRef) self.keychainItemRef;