diff options
author | Graeme Lunt <graeme.lunt@smhs.co.uk> | 2007-01-13 12:59:27 +0000 |
---|---|---|
committer | Graeme Lunt <graeme.lunt@smhs.co.uk> | 2007-01-13 12:59:27 +0000 |
commit | 2fd7d2c62078813f44e78f0b4b9f8b0e6e5928fb (patch) | |
tree | 8bc3e25bd6afc1b8eeb5ae59ab92988c18a6dcc8 /epan/dissectors/packet-x509af.c | |
parent | 13a095e055798295514d723c15f72e8f2cd89a3e (diff) |
New "decode as ..." feature for BER-encoded files (WTAP_FILE_BER).
A BER-encoded file can be dissected as one of a number of registered syntaxes (registered using register_ber_syntax_dissector()).
Syntaxes may also be associated with OIDs (or other strings) using register_ber_oid_syntax().
A default syntax with which to dissect a BER-encoded file is determined from its filename (extension). For example, ".cer" and ".crt" files will be dissected as "Certificate".
svn path=/trunk/; revision=20414
Diffstat (limited to 'epan/dissectors/packet-x509af.c')
-rw-r--r-- | epan/dissectors/packet-x509af.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/epan/dissectors/packet-x509af.c b/epan/dissectors/packet-x509af.c index a414d6d0ec..97f5c72309 100644 --- a/epan/dissectors/packet-x509af.c +++ b/epan/dissectors/packet-x509af.c @@ -1,6 +1,6 @@ /* Do not modify this file. */ /* It is created automatically by the ASN.1 to Wireshark dissector compiler */ -/* .\packet-x509af.c */ +/* ./packet-x509af.c */ /* ../../tools/asn2wrs.py -b -e -p x509af -c x509af.cnf -s packet-x509af-template AuthenticationFramework.asn */ /* Input file: packet-x509af-template.c */ @@ -1557,5 +1557,12 @@ void proto_reg_handoff_x509af(void) { register_ldap_name_dissector("crossCertificatePair", dissect_CertificatePair_PDU, proto_x509af); + register_ber_syntax_dissector("Certificate", proto_x509af, dissect_Certificate_PDU); + register_ber_oid_syntax(".cer", NULL, "Certificate"); + register_ber_oid_syntax(".crt", NULL, "Certificate"); + register_ber_syntax_dissector("CertificateList", proto_x509af, dissect_CertificateList_PDU); + register_ber_oid_syntax(".crl", NULL, "CertificateList"); + register_ber_syntax_dissector("CrossCertificatePair", proto_x509af, dissect_CertificatePair_PDU); + } |