forked from osmocom/wireshark
added the userCertificate and cAcertificate attributes
svn path=/trunk/; revision=11508
This commit is contained in:
parent
829a19a29b
commit
9d69ba5911
|
@ -246,12 +246,11 @@ AttributeCertificateAssertion ::= SEQUENCE {
|
|||
-- information object classes
|
||||
--ALGORITHM ::= TYPE-IDENTIFIER
|
||||
|
||||
|
||||
-- object identifier assignments
|
||||
--id-at-userPassword OBJECT IDENTIFIER ::=
|
||||
-- {id-at 35}
|
||||
|
||||
--id-at-userCertificate OBJECT IDENTIFIER ::= {id-at 36}
|
||||
id-at-userCertificate OBJECT IDENTIFIER ::= {id-at 36}
|
||||
|
||||
--id-at-cAcertificate OBJECT IDENTIFIER ::= {id-at 37}
|
||||
|
||||
|
|
|
@ -48,6 +48,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;
|
||||
#include "packet-x509af-hf.c"
|
||||
|
||||
/* Initialize the subtree pointers */
|
||||
|
@ -131,11 +133,31 @@ dissect_x509af_AlgorithmIdentifier(gboolean implicit_tag, tvbuff_t *tvb, int off
|
|||
#include "packet-x509af-fn.c"
|
||||
|
||||
|
||||
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,
|
||||
|
@ -168,5 +190,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");
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue