diff -r 2c300b15b381 -r 6856e071d25a MYKey.m --- a/MYKey.m Sat Jun 06 15:01:28 2009 -0700 +++ b/MYKey.m Tue Jun 09 23:58:03 2009 -0700 @@ -26,7 +26,7 @@ forKeychain: (SecKeychainRef)keychain { Assert(keyData!=nil); SecKeyImportExportParameters params = {}; - SecKeyRef key = importKey(keyData, self.keyType, keychain, ¶ms); + SecKeyRef key = importKey(keyData, self.keyClass, keychain, ¶ms); if (!key) { [self release]; return nil; @@ -45,10 +45,15 @@ return $sprintf(@"%@[%@ /%p]", [self class], (self.name ?:@""), self.keychainItemRef); } -- (SecExternalItemType) keyType { +- (SecExternalItemType) keyClass { AssertAbstractMethod(); } +#if MYCRYPTO_USE_IPHONE_API +- (SecExternalItemType) keyType { + return NULL; +} +#endif - (SecKeyRef) keyRef { return (SecKeyRef) self.keychainItemRef;