diff -r 2c300b15b381 -r d0aadddb9c64 MYOID.m --- a/MYOID.m Sat Jun 06 15:01:28 2009 -0700 +++ b/MYOID.m Tue Jul 21 10:13:08 2009 -0700 @@ -59,6 +59,16 @@ return [[[self alloc] initWithBEREncoding: encoding] autorelease]; } +#if TARGET_OS_MAC ++ (MYOID*) OIDFromCSSM: (CSSM_OID)cssmOid +{ + NSData *ber = [[NSData alloc] initWithBytesNoCopy: cssmOid.Data length: cssmOid.Length freeWhenDone: NO]; + MYOID *oid = [[[self alloc] initWithBEREncoding: ber] autorelease]; + [ber release]; + return oid; +} +#endif + - (id) copyWithZone: (NSZone*)zone { return [self retain];