diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2004-07-24 22:30:49 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2004-07-24 22:30:49 +0000 |
commit | 9d69ba5911c12fbfe6f7da2b4af6cfa3bc03c946 (patch) | |
tree | 9c78bd81a12f5d18e58993c18898c98da61f886b /epan/dissectors/packet-x509af.c | |
parent | 829a19a29bf76c58930ec9e6416494e3b93d103b (diff) |
added the userCertificate and cAcertificate attributes
svn path=/trunk/; revision=11508
Diffstat (limited to 'epan/dissectors/packet-x509af.c')
-rw-r--r-- | epan/dissectors/packet-x509af.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/epan/dissectors/packet-x509af.c b/epan/dissectors/packet-x509af.c index 80d30b6361..20004a595e 100644 --- a/epan/dissectors/packet-x509af.c +++ b/epan/dissectors/packet-x509af.c @@ -56,6 +56,8 @@ static int proto_x509af = -1; static int hf_x509af_algorithm_id = -1; static int hf_x509af_extension_id = -1; static int hf_x509af_critical = -1; /* BOOLEAN */ +static int hf_x509af_id_at_userCertificate = -1; +static int hf_x509af_id_at_cAcertificate = -1; /*--- Included file: packet-x509af-hf.c ---*/ @@ -918,11 +920,31 @@ dissect_x509af_AttributeCertificateAssertion(gboolean implicit_tag _U_, tvbuff_t +static void +dissect_x509af_userCertificate_callback(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +{ + dissect_x509af_Certificate(FALSE, tvb, 0, pinfo, tree, hf_x509af_id_at_userCertificate); +} + +static void +dissect_x509af_cAcertificate_callback(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +{ + dissect_x509af_Certificate(FALSE, tvb, 0, pinfo, tree, hf_x509af_id_at_cAcertificate); +} + /*--- proto_register_x509af ----------------------------------------------*/ void proto_register_x509af(void) { /* List of fields */ static hf_register_info hf[] = { + { &hf_x509af_id_at_userCertificate, + { "userCertificate", "x509af.id_at_userCertificate", + FT_NONE, BASE_NONE, NULL, 0, + "id-at-userCertificate", HFILL }}, + { &hf_x509af_id_at_cAcertificate, + { "cAcertificate", "x509af.id_at_cAcertificate", + FT_NONE, BASE_NONE, NULL, 0, + "id-at-cAcertificate", HFILL }}, { &hf_x509af_algorithm_id, { "Algorithm Id", "x509af.algorithm.id", FT_STRING, BASE_NONE, NULL, 0, @@ -1245,5 +1267,7 @@ void proto_register_x509af(void) { /*--- proto_reg_handoff_x509af -------------------------------------------*/ void proto_reg_handoff_x509af(void) { + register_ber_oid_dissector("2.5.4.36", dissect_x509af_userCertificate_callback, proto_x509af, "id-at-userCertificate"); + register_ber_oid_dissector("2.5.4.37", dissect_x509af_cAcertificate_callback, proto_x509af, "id-at-cAcertificate"); } |