diff options
author | Peter Wu <peter@lekensteyn.nl> | 2020-01-19 17:23:48 +0000 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2020-01-21 22:10:45 +0000 |
commit | d44c5e45cbb5e9ece96cab6a62793dd24ec52b7d (patch) | |
tree | fbc528adf1b7702e2fcfd20d8d542480b702b7d6 /epan/dissectors/packet-ocsp.c | |
parent | 75e1b69e88bb6856bbae443aa64efdceb3e39117 (diff) |
x509af,ocsp,ber: display serialNumber (INTEGER) as bytes
Certificates used in TLS typically have a serial number larger than 64
bits which do not fit in FT_UINT64 and results in use of the synthetic
ber.64bit_uint_as_bytes field name. To enable use of ocsp.serialNumber
and x509af.serialNumber field names, define these as bytes instead.
Update the BER dissector to allow INTEGER types to use FT_BYTES.
Bug: 16339
Change-Id: Id58075b450d86aff6b616c359900ae83a3ec2f51
Reviewed-on: https://code.wireshark.org/review/35868
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'epan/dissectors/packet-ocsp.c')
-rw-r--r-- | epan/dissectors/packet-ocsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ocsp.c b/epan/dissectors/packet-ocsp.c index 40eb1938e9..86b4b7e5d5 100644 --- a/epan/dissectors/packet-ocsp.c +++ b/epan/dissectors/packet-ocsp.c @@ -815,7 +815,7 @@ void proto_register_ocsp(void) { "OCTET_STRING", HFILL }}, { &hf_ocsp_serialNumber, { "serialNumber", "ocsp.serialNumber", - FT_UINT64, BASE_DEC, NULL, 0, + FT_BYTES, BASE_NONE, NULL, 0, "CertificateSerialNumber", HFILL }}, { &hf_ocsp_responseStatus, { "responseStatus", "ocsp.responseStatus", |