author | Jens Alfke <jens@mooseyard.com> |
Tue Jul 21 10:13:08 2009 -0700 (2009-07-21) | |
changeset 27 | d0aadddb9c64 |
parent 19 | f6c91b9da05b |
child 28 | 54b373aa65ab |
permissions | -rw-r--r-- |
jens@16 | 1 |
// |
jens@16 | 2 |
// MYOID.h |
jens@16 | 3 |
// MYCrypto |
jens@16 | 4 |
// |
jens@16 | 5 |
// Created by Jens Alfke on 5/28/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@19 | 12 |
/* An ASN.1 Object-ID, which is a sequence of integer components that define namespaces. |
jens@19 | 13 |
This is mostly used internally by MYParsedCertificate. */ |
jens@16 | 14 |
@interface MYOID : NSObject <NSCopying> |
jens@16 | 15 |
{ |
jens@16 | 16 |
NSData *_data; |
jens@16 | 17 |
} |
jens@16 | 18 |
|
jens@26 | 19 |
#if TARGET_OS_MAC |
jens@26 | 20 |
+ (MYOID*) OIDFromCSSM: (CSSM_OID)cssmOid; |
jens@26 | 21 |
#endif |
jens@26 | 22 |
|
jens@16 | 23 |
- (id) initWithComponents: (const UInt32*)components count: (unsigned)componentCount; |
jens@16 | 24 |
- (id) initWithBEREncoding: (NSData*)encoding; |
jens@16 | 25 |
- (NSData*) DEREncoding; |
jens@16 | 26 |
|
jens@16 | 27 |
- (const UInt32*) components; |
jens@16 | 28 |
- (unsigned) componentCount; |
jens@16 | 29 |
|
jens@16 | 30 |
@end |