summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cms/cms_asn1.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/cms/cms_asn1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/cms/cms_asn1.c b/src/lib/libcrypto/cms/cms_asn1.c
index 02a594575d..e450259832 100644
--- a/src/lib/libcrypto/cms/cms_asn1.c
+++ b/src/lib/libcrypto/cms/cms_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cms_asn1.c,v 1.6 2015/07/25 15:22:10 jsing Exp $ */ 1/* $OpenBSD: cms_asn1.c,v 1.7 2015/09/10 15:56:25 jsing Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project. 3 * project.
4 */ 4 */
@@ -888,13 +888,13 @@ cms_ri_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg)
888 } else if (ri->type == CMS_RECIPINFO_KEK) { 888 } else if (ri->type == CMS_RECIPINFO_KEK) {
889 CMS_KEKRecipientInfo *kekri = ri->d.kekri; 889 CMS_KEKRecipientInfo *kekri = ri->d.kekri;
890 if (kekri->key) { 890 if (kekri->key) {
891 OPENSSL_cleanse(kekri->key, kekri->keylen); 891 explicit_bzero(kekri->key, kekri->keylen);
892 free(kekri->key); 892 free(kekri->key);
893 } 893 }
894 } else if (ri->type == CMS_RECIPINFO_PASS) { 894 } else if (ri->type == CMS_RECIPINFO_PASS) {
895 CMS_PasswordRecipientInfo *pwri = ri->d.pwri; 895 CMS_PasswordRecipientInfo *pwri = ri->d.pwri;
896 if (pwri->pass) { 896 if (pwri->pass) {
897 OPENSSL_cleanse(pwri->pass, pwri->passlen); 897 explicit_bzero(pwri->pass, pwri->passlen);
898 free(pwri->pass); 898 free(pwri->pass);
899 } 899 }
900 } 900 }