* More work on iPhone compatibility.
* Restored the signature-verification code to MYCertInfo, which I'd removed earlier. I now need it to verify self-signed certs, since the Security framework won't do it for me.
* Merged MYCertificate-iPhone.m into MYCertificate.m since there's more shared code now.
5 // Created by Jens Alfke on 3/26/09.
6 // Copyright 2009 Jens Alfke. All rights reserved.
9 #import <Foundation/Foundation.h>
10 #import <Security/Security.h>
11 #import "MYCryptoConfig.h"
15 /** Error domain for CSSM (low-level crypto) errors */
16 extern NSString* const MYCSSMErrorDomain;
19 #if MYCRYPTO_USE_IPHONE_API
20 typedef CFTypeRef MYKeychainItemRef;
22 typedef SecKeychainItemRef MYKeychainItemRef;
26 /** Abstract base class for keychain items.
27 Direct subclasses are MYKey and MYCertificate. */
28 @interface MYKeychainItem : NSObject
31 MYKeychainItemRef _itemRef;
34 /** The Keychain item reference that this object represents. */
35 @property (readonly) MYKeychainItemRef keychainItemRef;
37 /** The Keychain that contains this object, or nil. */
38 @property (readonly) MYKeychain *keychain;
40 /** Removes the item from its keychain, if any. */
41 - (BOOL) removeFromKeychain;