Changed the X.509 version number in generated certs from 1 to 3, so that SecCertificateCreateFromData on iPhone will accept them. :-/
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;