summaryrefslogtreecommitdiff
path: root/lib/libcrypto/pkcs12
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-02-18 15:44:11 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-02-18 15:44:11 +0000
commit4c15ead7a391b2afa32e4adce2ffa6bc080e9c4d (patch)
treed916980dcfa166f0c4585cd402f4aa7724be813e /lib/libcrypto/pkcs12
parent03e57097c3b11adbc3c858c70408986bbaa2667c (diff)
Use EVP_CIPHER_CTX_legacy_clear() internally
ok jsing
Diffstat (limited to 'lib/libcrypto/pkcs12')
-rw-r--r--lib/libcrypto/pkcs12/p12_decr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/pkcs12/p12_decr.c b/lib/libcrypto/pkcs12/p12_decr.c
index ea7f6a5ffa2..04818acd13f 100644
--- a/lib/libcrypto/pkcs12/p12_decr.c
+++ b/lib/libcrypto/pkcs12/p12_decr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p12_decr.c,v 1.24 2023/02/16 08:38:17 tb Exp $ */
+/* $OpenBSD: p12_decr.c,v 1.25 2024/02/18 15:44:10 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -77,7 +77,7 @@ PKCS12_pbe_crypt(const X509_ALGOR *algor, const char *pass, int passlen,
int outlen, i;
EVP_CIPHER_CTX ctx;
- EVP_CIPHER_CTX_init(&ctx);
+ EVP_CIPHER_CTX_legacy_clear(&ctx);
/* Decrypt data */
if (!EVP_PBE_CipherInit(algor->algorithm, pass, passlen,
algor->parameter, &ctx, en_de)) {