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-cms.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-cms.c')
-rw-r--r-- | epan/dissectors/packet-cms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-cms.c b/epan/dissectors/packet-cms.c index 95ba431771..d6e5e1da52 100644 --- a/epan/dissectors/packet-cms.c +++ b/epan/dissectors/packet-cms.c @@ -2867,7 +2867,7 @@ void proto_register_cms(void) { "RecipientKeyIdentifier", HFILL }}, { &hf_cms_date, { "date", "cms.date", - FT_STRING, BASE_NONE, NULL, 0, + FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, "GeneralizedTime", HFILL }}, { &hf_cms_other, { "other", "cms.other_element", @@ -2983,7 +2983,7 @@ void proto_register_cms(void) { NULL, HFILL }}, { &hf_cms_generalTime, { "generalTime", "cms.generalTime", - FT_STRING, BASE_NONE, NULL, 0, + FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0, "GeneralizedTime", HFILL }}, { &hf_cms_rc2ParameterVersion, { "rc2ParameterVersion", "cms.rc2ParameterVersion", |