diff options
-rw-r--r-- | asn1/x509af/x509af.cnf | 5 | ||||
-rw-r--r-- | epan/dissectors/packet-x509af.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/asn1/x509af/x509af.cnf b/asn1/x509af/x509af.cnf index 5752bfb518..8791a982c5 100644 --- a/asn1/x509af/x509af.cnf +++ b/asn1/x509af/x509af.cnf @@ -113,4 +113,9 @@ CertificateList/signedCertificateList/revokedCertificates/_item/userCertificate str = x509if_get_last_dn(); proto_item_append_text(proto_item_get_parent(tree), " (%%s)", str?str:""); +#.TYPE_ATTR +CertificateSerialNumber TYPE = FT_INT64 + +#.FN_PARS CertificateSerialNumber FN_VARIANT = 64 + #.END diff --git a/epan/dissectors/packet-x509af.c b/epan/dissectors/packet-x509af.c index 8b68d54f33..5d664ad0ae 100644 --- a/epan/dissectors/packet-x509af.c +++ b/epan/dissectors/packet-x509af.c @@ -199,7 +199,7 @@ dissect_x509af_Version(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset int dissect_x509af_CertificateSerialNumber(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { - offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index, + offset = dissect_ber_integer64(implicit_tag, actx, tree, tvb, offset, hf_index, NULL); return offset; @@ -966,7 +966,7 @@ void proto_register_x509af(void) { NULL, HFILL }}, { &hf_x509af_serialNumber, { "serialNumber", "x509af.serialNumber", - FT_INT32, BASE_DEC, NULL, 0, + FT_INT64, BASE_DEC, NULL, 0, "CertificateSerialNumber", HFILL }}, { &hf_x509af_signature, { "signature", "x509af.signature_element", @@ -1114,7 +1114,7 @@ void proto_register_x509af(void) { NULL, HFILL }}, { &hf_x509af_revokedUserCertificate, { "userCertificate", "x509af.userCertificate", - FT_INT32, BASE_DEC, NULL, 0, + FT_INT64, BASE_DEC, NULL, 0, "CertificateSerialNumber", HFILL }}, { &hf_x509af_revocationDate, { "revocationDate", "x509af.revocationDate", @@ -1182,7 +1182,7 @@ void proto_register_x509af(void) { "UniqueIdentifier", HFILL }}, { &hf_x509af_serial, { "serial", "x509af.serial", - FT_INT32, BASE_DEC, NULL, 0, + FT_INT64, BASE_DEC, NULL, 0, "CertificateSerialNumber", HFILL }}, { &hf_x509af_issuerUID, { "issuerUID", "x509af.issuerUID", |