aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/cms/cms.cnf
diff options
context:
space:
mode:
authorGraeme Lunt <graeme.lunt@smhs.co.uk>2007-08-17 19:14:39 +0000
committerGraeme Lunt <graeme.lunt@smhs.co.uk>2007-08-17 19:14:39 +0000
commit0e9f4f05f15f91bcc1cfcf279256496f0a3fe647 (patch)
tree83f372456e576d32e2d8a884f174f4c177a05333 /asn1/cms/cms.cnf
parent54aa46c2bbaccb8b865de75e140e36cde9919e83 (diff)
Support for the decryption of EncryptedData which is used by PKCS12
Uses the PBE routines from PKCS12. svn path=/trunk/; revision=22535
Diffstat (limited to 'asn1/cms/cms.cnf')
-rw-r--r--asn1/cms/cms.cnf16
1 files changed, 13 insertions, 3 deletions
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