diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2014-12-01 15:00:13 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-12-02 12:23:20 +0000 |
commit | f6a4f3252bb61b2ed4944d2afad5506bb5567695 (patch) | |
tree | d7773b358290dcd90c0bb9b35c88e5fcaa58c0b8 /asn1/cms | |
parent | 077b45e033a5dce78ddea7d8c4f6dd7772b68d90 (diff) |
cms: Handle media_type pkcs7-mime and pkcs7-signature
Change-Id: I7db4e67ffe99a9f3b41d0b507d9837e0237d4547
Reviewed-on: https://code.wireshark.org/review/5558
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'asn1/cms')
-rw-r--r-- | asn1/cms/packet-cms-template.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/asn1/cms/packet-cms-template.c b/asn1/cms/packet-cms-template.c index 7e3aba57a4..29b4ac040b 100644 --- a/asn1/cms/packet-cms-template.c +++ b/asn1/cms/packet-cms-template.c @@ -172,11 +172,15 @@ void proto_register_cms(void) { /*--- proto_reg_handoff_cms -------------------------------------------*/ void proto_reg_handoff_cms(void) { + dissector_handle_t content_info_handle; #include "packet-cms-dis-tab.c" oid_add_from_string("id-data","1.2.840.113549.1.7.1"); oid_add_from_string("id-alg-des-ede3-cbc","1.2.840.113549.3.7"); oid_add_from_string("id-alg-des-cbc","1.3.14.3.2.7"); + content_info_handle = new_create_dissector_handle (dissect_ContentInfo_PDU, proto_cms); + dissector_add_string("media_type", "application/pkcs7-mime", content_info_handle); + dissector_add_string("media_type", "application/pkcs7-signature", content_info_handle); } |