MYBERParser.h
author Jens Alfke <jens@mooseyard.com>
Fri Aug 07 11:24:53 2009 -0700 (2009-08-07)
changeset 28 54b373aa65ab
parent 19 f6c91b9da05b
permissions -rw-r--r--
Fixed iPhone OS build. (issue 3)
     1 //
     2 //  MYBERParser.h
     3 //  MYCrypto
     4 //
     5 //  Created by Jens Alfke on 6/2/09.
     6 //  Copyright 2009 Jens Alfke. All rights reserved.
     7 //
     8 
     9 #import <Foundation/Foundation.h>
    10 
    11 
    12 #define MYASN1ErrorDomain @"MYASN1ErrorDomain"
    13 
    14 
    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);
    18 
    19 size_t MYBERGetLength (NSData *ber, NSError **outError);
    20 const void* MYBERGetContents (NSData *ber, NSError **outError);
    21 
    22 /** A date formatter with the format string "yyyyMMddHHmmss'Z'" */
    23 NSDateFormatter* MYBERGeneralizedTimeFormatter();
    24 NSDateFormatter* MYBERUTCTimeFormatter();