MYBERParser.h
author Jens Alfke <jens@mooseyard.com>
Tue Jun 09 23:58:03 2009 -0700 (2009-06-09)
changeset 24 6856e071d25a
parent 17 90a70925562b
child 26 d9c2a06d4e4e
permissions -rw-r--r--
* 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.
jens@16
     1
//
jens@16
     2
//  MYBERParser.h
jens@16
     3
//  MYCrypto
jens@16
     4
//
jens@16
     5
//  Created by Jens Alfke on 6/2/09.
jens@16
     6
//  Copyright 2009 Jens Alfke. All rights reserved.
jens@16
     7
//
jens@16
     8
jens@19
     9
#import <Foundation/Foundation.h>
jens@16
    10
jens@16
    11
jens@16
    12
#define MYASN1ErrorDomain @"MYASN1ErrorDomain"
jens@16
    13
jens@16
    14
jens@19
    15
/** Parses a block of BER-formatted data into an object tree.
jens@19
    16
    This is mostly used internally by MYParsedCertificate. */
jens@16
    17
id MYBERParse (NSData *ber, NSError **outError);
jens@16
    18
jens@17
    19
size_t MYBERGetLength (NSData *ber, NSError **outError);
jens@17
    20
const void* MYBERGetContents (NSData *ber, NSError **outError);
jens@17
    21
jens@16
    22
NSDateFormatter* MYBERGeneralizedTimeFormatter();
jens@16
    23
NSDateFormatter* MYBERUTCTimeFormatter();