Subject: OT: asn.1 OID parser

From: "Martin Szotkowski" <[email-masked]>
Date: Fri, 16 Feb 2001 19:05:49 +0100

Hi all,
(excuse me my off topic question)
I wish read OID from ASN.1 code and write them into other file with full
number specific OID.
from e.g.:
pkcs-1 OBJECT IDENTIFIER ::= {
     iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 1 }
rsaEncryption OBJECT IDENTIFIER ::=  { pkcs-1 1 }
to e.g.:
pkcs-1 OBJECT IDENTIFIER ::= {1 2 840 113549 1 1 }
rsaEncryption OBJECT IDENTIFIER ::=  { 1 2 840 113549 1 1 1 }

Exist some C code or program or parser for do it?

thanks Martin

---

From: [email-masked] (Peter Gutmann)
Date: Sun, 18 Feb 2001 09:23:48 (NZDT)

>Exist some C code or program or parser for do it?

Yes, http://www.cs.auckland.ac.nz/~pgut001/dumpasn1.c and .cfg.

Peter.