REASON FOR PATCH:
I needed a way to pull out a signer's serial number from
a pkcs7 signedData message.  Instead of making my own api calls
to pull it out, i figured it would be best for me to get asn1parse
to pipe out an xml representation of the asn1 message and then 
pull it out from there (using "expat" a c based xml parser).

MODIFIED WHAT (on 0.9.5):
util/libeay.num     (added ASN1_parser_xml())
apps/asn1pars.c     (added ASN1_tag2str_xml(), ASN1_parser2_xml())
crypto/asn1/asn1.h
crypto/asn1/asn1_par.c

BUGS
seems to work well for pkcs7 messages and ok for the other PEM's in 
the test directory: they all are well formed and all content and
types appear accountable.  but the algorithm hasn't been analyzed
deeply enough for correctness.

WHAT IT DOES:
- prints out xml if the "-x" option is given to asn1parse
- prints out contents of OCTET STRING and BIT STRING as a hex string.
- prints out a hex string for the content octets of an implicit
  unconstructed non universal class type. 
- prints out a "level" attribute.
- prints out a "index" xml attribute for universal class types only.  
  (neither is "index" incremented for non-universal class types)
- prints out &amp; and &lt; for & and < in a printable string

[EMAIL PROTECTED]

 <<asn1parse.patch>> 

asn1parse.patch

Reply via email to