diff options
author | John Thacker <johnthacker@gmail.com> | 2021-11-23 21:36:02 -0500 |
---|---|---|
committer | John Thacker <johnthacker@gmail.com> | 2021-12-02 20:40:22 -0500 |
commit | 7e99bbf32b73f3dd09c0ee6c1d3ac02a7e988f61 (patch) | |
tree | 4870914dd0b396e63a4f972dab4c343a6e2bf997 /epan/dissectors/packet-cmp.c | |
parent | a0173cd7cf8acca1a3aff23f66a03fb6de21261c (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-cmp.c')
-rw-r--r-- | epan/dissectors/packet-cmp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-cmp.c b/epan/dissectors/packet-cmp.c index 6f6febdaf5..f1d08b1cde 100644 --- a/epan/dissectors/packet-cmp.c +++ b/epan/dissectors/packet-cmp.c @@ -1762,7 +1762,7 @@ void proto_register_cmp(void) { NULL, HFILL }}, { &hf_cmp_ConfirmWaitTimeValue_PDU, { "ConfirmWaitTimeValue", "cmp.ConfirmWaitTimeValue", - FT_STRING, BASE_NONE, NULL, 0, + FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, NULL, HFILL }}, { &hf_cmp_OrigPKIMessageValue_PDU, { "OrigPKIMessageValue", "cmp.OrigPKIMessageValue", @@ -1814,7 +1814,7 @@ void proto_register_cmp(void) { "GeneralName", HFILL }}, { &hf_cmp_messageTime, { "messageTime", "cmp.messageTime", - FT_STRING, BASE_NONE, NULL, 0, + FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, "GeneralizedTime", HFILL }}, { &hf_cmp_protectionAlg, { "protectionAlg", "cmp.protectionAlg_element", @@ -2146,11 +2146,11 @@ void proto_register_cmp(void) { "PKIStatus", HFILL }}, { &hf_cmp_willBeRevokedAt, { "willBeRevokedAt", "cmp.willBeRevokedAt", - FT_STRING, BASE_NONE, NULL, 0, + FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, "GeneralizedTime", HFILL }}, { &hf_cmp_badSinceDate, { "badSinceDate", "cmp.badSinceDate", - FT_STRING, BASE_NONE, NULL, 0, + FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, "GeneralizedTime", HFILL }}, { &hf_cmp_crlDetails, { "crlDetails", "cmp.crlDetails", |