aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
diff options
context:
space:
mode:
Diffstat (limited to 'asn1')
-rw-r--r--asn1/cms/cms-exp.cnf2
-rw-r--r--asn1/cms/cms.cnf16
-rw-r--r--asn1/cms/packet-cms-template.c1
3 files changed, 15 insertions, 4 deletions
diff --git a/asn1/cms/cms-exp.cnf b/asn1/cms/cms-exp.cnf
index 255723b55d..0eb30a20a9 100644
--- a/asn1/cms/cms-exp.cnf
+++ b/asn1/cms/cms-exp.cnf
@@ -1,6 +1,6 @@
# Do not modify this file.
# It is created automatically by the ASN.1 to Wireshark dissector compiler
-# .\cms-exp.cnf
+# ./cms-exp.cnf
# ../../tools/asn2wrs.py -b -e -p cms -c cms.cnf -s packet-cms-template CryptographicMessageSyntax.asn
#.MODULE
diff --git a/asn1/cms/cms.cnf b/asn1/cms/cms.cnf
index b6f7e98b4e..7aa44ebfe8 100644
--- a/asn1/cms/cms.cnf
+++ b/asn1/cms/cms.cnf
@@ -49,8 +49,6 @@ RC2CBCParameters B "1.2.840.113549.3.2" "id-alg-rc2-cbc"
RC2CBCParameters B "1.2.840.113549.3.4" "id-alg-rc4"
RC2WrapParameter B "1.2.840.113549.1.9.16.3.7" "id-alg-cmsrc2-wrap"
-
-
#.NO_EMIT
#.TYPE_RENAME
@@ -158,7 +156,6 @@ EncryptedContentInfo/contentType encryptedContentType
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
-
#.FN_PARS RC2ParameterVersion
VAL_PTR = &length
@@ -170,6 +167,19 @@ EncryptedContentInfo/contentType encryptedContentType
if(cap_tree != NULL)
proto_item_append_text(cap_tree, " (%%d bits)", length);
+#.FN_PARS EncryptedContent VAL_PTR = &encrypted_tvb
+
+#.FN_HDR EncryptedContent
+ tvbuff_t *encrypted_tvb;
+ proto_item *item;
+#.END
+
+#.FN_FTR EncryptedContent
+
+ item = get_ber_last_created_item();
+
+ PBE_decrypt_data(object_identifier_id, encrypted_tvb, actx, item);
+
#.END
diff --git a/asn1/cms/packet-cms-template.c b/asn1/cms/packet-cms-template.c
index ba9436c49d..4a7dde850f 100644
--- a/asn1/cms/packet-cms-template.c
+++ b/asn1/cms/packet-cms-template.c
@@ -40,6 +40,7 @@
#include "packet-cms.h"
#include "packet-x509af.h"
#include "packet-x509if.h"
+#include "packet-pkcs12.h"
#include <epan/crypt/crypt-sha1.h>
#include <epan/crypt/crypt-md5.h>