summaryrefslogtreecommitdiff
path: root/lib/libcrypto/pkcs7
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2015-09-10 15:56:27 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2015-09-10 15:56:27 +0000
commit4b185770bb48b33b3458575b4dd273d9e9e5b60a (patch)
treefdb63280eeb935a98b2cf72fae41e177686c15ea /lib/libcrypto/pkcs7
parent3a518e4ad573c57d1cc478fe3257cbd80f7098fc (diff)
Correct spelling of OPENSSL_cleanse.
ok miod@
Diffstat (limited to 'lib/libcrypto/pkcs7')
-rw-r--r--lib/libcrypto/pkcs7/pk7_doit.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/libcrypto/pkcs7/pk7_doit.c b/lib/libcrypto/pkcs7/pk7_doit.c
index 24bcebef616..7755c3c30ef 100644
--- a/lib/libcrypto/pkcs7/pk7_doit.c
+++ b/lib/libcrypto/pkcs7/pk7_doit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pk7_doit.c,v 1.36 2015/07/29 14:58:34 jsing Exp $ */
+/* $OpenBSD: pk7_doit.c,v 1.37 2015/09/10 15:56:25 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -233,7 +233,7 @@ pkcs7_decrypt_rinfo(unsigned char **pek, int *peklen, PKCS7_RECIP_INFO *ri,
ret = 1;
if (*pek) {
- OPENSSL_cleanse(*pek, *peklen);
+ explicit_bzero(*pek, *peklen);
free(*pek);
}
@@ -371,7 +371,7 @@ PKCS7_dataInit(PKCS7 *p7, BIO *bio)
if (pkcs7_encode_rinfo(ri, key, keylen) <= 0)
goto err;
}
- OPENSSL_cleanse(key, keylen);
+ explicit_bzero(key, keylen);
if (out == NULL)
out = btmp;
@@ -588,7 +588,7 @@ PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert)
*/
if (!EVP_CIPHER_CTX_set_key_length(evp_ctx, eklen)) {
/* Use random key as MMA defence */
- OPENSSL_cleanse(ek, eklen);
+ explicit_bzero(ek, eklen);
free(ek);
ek = tkey;
eklen = tkeylen;
@@ -601,12 +601,12 @@ PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert)
goto err;
if (ek) {
- OPENSSL_cleanse(ek, eklen);
+ explicit_bzero(ek, eklen);
free(ek);
ek = NULL;
}
if (tkey) {
- OPENSSL_cleanse(tkey, tkeylen);
+ explicit_bzero(tkey, tkeylen);
free(tkey);
tkey = NULL;
}
@@ -635,11 +635,11 @@ PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert)
if (0) {
err:
if (ek) {
- OPENSSL_cleanse(ek, eklen);
+ explicit_bzero(ek, eklen);
free(ek);
}
if (tkey) {
- OPENSSL_cleanse(tkey, tkeylen);
+ explicit_bzero(tkey, tkeylen);
free(tkey);
}
if (out != NULL)