MYCertificate now checks validity of self-signed certs loaded from the keychain (because the Security framework doesn't validate self-signed certs.)
5 // Created by Jens Alfke on 6/2/09.
6 // Copyright 2009 Jens Alfke. All rights reserved.
9 #import <Foundation/Foundation.h>
12 #define MYASN1ErrorDomain @"MYASN1ErrorDomain"
15 /** Parses a block of BER-formatted data into an object tree.
16 This is mostly used internally by MYParsedCertificate. */
17 id MYBERParse (NSData *ber, NSError **outError);
19 size_t MYBERGetLength (NSData *ber, NSError **outError);
20 const void* MYBERGetContents (NSData *ber, NSError **outError);
22 /** A date formatter with the format string "yyyyMMddHHmmss'Z'" */
23 NSDateFormatter* MYBERGeneralizedTimeFormatter();
24 NSDateFormatter* MYBERUTCTimeFormatter();