MYOID.m
changeset 27 d0aadddb9c64
parent 21 2c300b15b381
child 28 54b373aa65ab
     1.1 --- a/MYOID.m	Sat Jun 06 15:01:28 2009 -0700
     1.2 +++ b/MYOID.m	Tue Jul 21 10:13:08 2009 -0700
     1.3 @@ -59,6 +59,16 @@
     1.4      return [[[self alloc] initWithBEREncoding: encoding] autorelease];
     1.5  }
     1.6  
     1.7 +#if TARGET_OS_MAC
     1.8 ++ (MYOID*) OIDFromCSSM: (CSSM_OID)cssmOid
     1.9 +{
    1.10 +    NSData *ber = [[NSData alloc] initWithBytesNoCopy: cssmOid.Data length: cssmOid.Length freeWhenDone: NO];
    1.11 +    MYOID *oid = [[[self alloc] initWithBEREncoding: ber] autorelease];
    1.12 +    [ber release];
    1.13 +    return oid;
    1.14 +}
    1.15 +#endif
    1.16 +
    1.17  
    1.18  - (id) copyWithZone: (NSZone*)zone {
    1.19      return [self retain];