diff options
Diffstat (limited to 'src/lib/libcrypto/cms/cms_kari.c')
-rw-r--r-- | src/lib/libcrypto/cms/cms_kari.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/cms/cms_kari.c b/src/lib/libcrypto/cms/cms_kari.c index ca3e6d75de..04bca9dce5 100644 --- a/src/lib/libcrypto/cms/cms_kari.c +++ b/src/lib/libcrypto/cms/cms_kari.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cms_kari.c,v 1.9 2019/08/11 10:43:24 jsing Exp $ */ | 1 | /* $OpenBSD: cms_kari.c,v 1.10 2019/08/11 10:43:57 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
4 | * project. | 4 | * project. |
@@ -296,7 +296,7 @@ CMS_RecipientInfo_kari_decrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri, | |||
296 | if (!cms_kek_cipher(&cek, &ceklen, enckey, enckeylen, ri->d.kari, 0)) | 296 | if (!cms_kek_cipher(&cek, &ceklen, enckey, enckeylen, ri->d.kari, 0)) |
297 | goto err; | 297 | goto err; |
298 | ec = cms->d.envelopedData->encryptedContentInfo; | 298 | ec = cms->d.envelopedData->encryptedContentInfo; |
299 | OPENSSL_clear_free(ec->key, ec->keylen); | 299 | freezero(ec->key, ec->keylen); |
300 | ec->key = cek; | 300 | ec->key = cek; |
301 | ec->keylen = ceklen; | 301 | ec->keylen = ceklen; |
302 | cek = NULL; | 302 | cek = NULL; |