MYOID.h
author Jens Alfke <jens@mooseyard.com>
Tue Jun 09 23:58:03 2009 -0700 (2009-06-09)
changeset 24 6856e071d25a
parent 16 c409dbc4f068
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.
     1 //
     2 //  MYOID.h
     3 //  MYCrypto
     4 //
     5 //  Created by Jens Alfke on 5/28/09.
     6 //  Copyright 2009 Jens Alfke. All rights reserved.
     7 //
     8 
     9 #import <Foundation/Foundation.h>
    10 
    11 
    12 /* An ASN.1 Object-ID, which is a sequence of integer components that define namespaces.
    13     This is mostly used internally by MYParsedCertificate. */
    14 @interface MYOID : NSObject <NSCopying>
    15 {
    16     NSData *_data;
    17 }
    18 
    19 - (id) initWithComponents: (const UInt32*)components count: (unsigned)componentCount;
    20 - (id) initWithBEREncoding: (NSData*)encoding;
    21 - (NSData*) DEREncoding;
    22 
    23 - (const UInt32*) components;
    24 - (unsigned) componentCount;
    25 
    26 @end