summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cms/cms_pwri.c
diff options
context:
space:
mode:
authorjsing <>2019-08-11 10:43:57 +0000
committerjsing <>2019-08-11 10:43:57 +0000
commit9b17e135d02d61f0799bf88a83642be82e02660f (patch)
tree48d3389f651b99c0b34f82b98e399b0000e62a04 /src/lib/libcrypto/cms/cms_pwri.c
parent0fcd567f3f5fd99c93130fc464884b7c714001ff (diff)
downloadopenbsd-9b17e135d02d61f0799bf88a83642be82e02660f.tar.gz
openbsd-9b17e135d02d61f0799bf88a83642be82e02660f.tar.bz2
openbsd-9b17e135d02d61f0799bf88a83642be82e02660f.zip
Use freezero() rather than OPENSSL_clear_free().
Diffstat (limited to 'src/lib/libcrypto/cms/cms_pwri.c')
-rw-r--r--src/lib/libcrypto/cms/cms_pwri.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/cms/cms_pwri.c b/src/lib/libcrypto/cms/cms_pwri.c
index 30c5ce0618..918e37c88d 100644
--- a/src/lib/libcrypto/cms/cms_pwri.c
+++ b/src/lib/libcrypto/cms/cms_pwri.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cms_pwri.c,v 1.21 2019/08/11 10:41:49 jsing Exp $ */ 1/* $OpenBSD: cms_pwri.c,v 1.22 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.
@@ -268,7 +268,7 @@ kek_unwrap_key(unsigned char *out, size_t *outlen, const unsigned char *in,
268 rv = 1; 268 rv = 1;
269 269
270 err: 270 err:
271 OPENSSL_clear_free(tmp, inlen); 271 freezero(tmp, inlen);
272 272
273 return rv; 273 return rv;
274} 274}
@@ -411,7 +411,7 @@ cms_RecipientInfo_pwri_crypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri,
411 goto err; 411 goto err;
412 } 412 }
413 413
414 OPENSSL_clear_free(ec->key, ec->keylen); 414 freezero(ec->key, ec->keylen);
415 ec->key = key; 415 ec->key = key;
416 ec->keylen = keylen; 416 ec->keylen = keylen;
417 } 417 }