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/asn1/ocsp | |
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/asn1/ocsp')
-rw-r--r-- | epan/dissectors/asn1/ocsp/ocsp.cnf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/asn1/ocsp/ocsp.cnf b/epan/dissectors/asn1/ocsp/ocsp.cnf index 551b4583cc..eeeb51beae 100644 --- a/epan/dissectors/asn1/ocsp/ocsp.cnf +++ b/epan/dissectors/asn1/ocsp/ocsp.cnf @@ -3,7 +3,7 @@ #.TYPE_ATTR # pkix1explicit also exports the type CertificateSerialNumber. This makes sure asn2wrs uses the locally defined version. -CertificateSerialNumber TYPE = FT_UINT64 DISPLAY = BASE_DEC STRINGS = NULL BITMASK = 0 +CertificateSerialNumber TYPE = FT_BYTES DISPLAY = BASE_NONE STRINGS = NULL BITMASK = 0 #.END #.MODULE_IMPORT |