aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ocsp.c
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2021-11-23 21:36:02 -0500
committerJohn Thacker <johnthacker@gmail.com>2021-12-02 20:40:22 -0500
commit7e99bbf32b73f3dd09c0ee6c1d3ac02a7e988f61 (patch)
tree4870914dd0b396e63a4f972dab4c343a6e2bf997 /epan/dissectors/packet-ocsp.c
parenta0173cd7cf8acca1a3aff23f66a03fb6de21261c (diff)
BER: Make GeneralizedTime a FT_ABSOLUTE_TIME
Since we now support ISO 8601 Basic format, have asn2wrs.py convert GeneralizedTime fields in BER to FT_ABSOLUTE_TIMEs and use the new common code to convert them. This means that the fields can be compared with other time fields in filters, etc.
Diffstat (limited to 'epan/dissectors/packet-ocsp.c')
-rw-r--r--epan/dissectors/packet-ocsp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-ocsp.c b/epan/dissectors/packet-ocsp.c
index 86b4b7e5d5..8081534aec 100644
--- a/epan/dissectors/packet-ocsp.c
+++ b/epan/dissectors/packet-ocsp.c
@@ -727,7 +727,7 @@ void proto_register_ocsp(void) {
NULL, HFILL }},
{ &hf_ocsp_ArchiveCutoff_PDU,
{ "ArchiveCutoff", "ocsp.ArchiveCutoff",
- FT_STRING, BASE_NONE, NULL, 0,
+ FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0,
NULL, HFILL }},
{ &hf_ocsp_AcceptableResponses_PDU,
{ "AcceptableResponses", "ocsp.AcceptableResponses",
@@ -843,7 +843,7 @@ void proto_register_ocsp(void) {
NULL, HFILL }},
{ &hf_ocsp_producedAt,
{ "producedAt", "ocsp.producedAt",
- FT_STRING, BASE_NONE, NULL, 0,
+ FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0,
"GeneralizedTime", HFILL }},
{ &hf_ocsp_responses,
{ "responses", "ocsp.responses",
@@ -875,11 +875,11 @@ void proto_register_ocsp(void) {
NULL, HFILL }},
{ &hf_ocsp_thisUpdate,
{ "thisUpdate", "ocsp.thisUpdate",
- FT_STRING, BASE_NONE, NULL, 0,
+ FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0,
"GeneralizedTime", HFILL }},
{ &hf_ocsp_nextUpdate,
{ "nextUpdate", "ocsp.nextUpdate",
- FT_STRING, BASE_NONE, NULL, 0,
+ FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0,
"GeneralizedTime", HFILL }},
{ &hf_ocsp_singleExtensions,
{ "singleExtensions", "ocsp.singleExtensions",
@@ -899,7 +899,7 @@ void proto_register_ocsp(void) {
"UnknownInfo", HFILL }},
{ &hf_ocsp_revocationTime,
{ "revocationTime", "ocsp.revocationTime",
- FT_STRING, BASE_NONE, NULL, 0,
+ FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0,
"GeneralizedTime", HFILL }},
{ &hf_ocsp_revocationReason,
{ "revocationReason", "ocsp.revocationReason",
@@ -927,7 +927,7 @@ void proto_register_ocsp(void) {
"INTEGER", HFILL }},
{ &hf_ocsp_crlTime,
{ "crlTime", "ocsp.crlTime",
- FT_STRING, BASE_NONE, NULL, 0,
+ FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0,
"GeneralizedTime", HFILL }},
/*--- End of included file: packet-ocsp-hfarr.c ---*/