diff options
author | tb <> | 2024-02-18 15:44:10 +0000 |
---|---|---|
committer | tb <> | 2024-02-18 15:44:10 +0000 |
commit | 39b6299876ec6c908309c9f47f3940eb84b3be12 (patch) | |
tree | b0632599c491a36f1093cf7c7c9f79bfda606b0a /src/lib/libcrypto/pkcs12 | |
parent | 6098295db7aa89d96198a327d46d76586bd54ee0 (diff) | |
download | openbsd-39b6299876ec6c908309c9f47f3940eb84b3be12.tar.gz openbsd-39b6299876ec6c908309c9f47f3940eb84b3be12.tar.bz2 openbsd-39b6299876ec6c908309c9f47f3940eb84b3be12.zip |
Use EVP_CIPHER_CTX_legacy_clear() internally
ok jsing
Diffstat (limited to 'src/lib/libcrypto/pkcs12')
-rw-r--r-- | src/lib/libcrypto/pkcs12/p12_decr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/pkcs12/p12_decr.c b/src/lib/libcrypto/pkcs12/p12_decr.c index ea7f6a5ffa..04818acd13 100644 --- a/src/lib/libcrypto/pkcs12/p12_decr.c +++ b/src/lib/libcrypto/pkcs12/p12_decr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p12_decr.c,v 1.24 2023/02/16 08:38:17 tb Exp $ */ | 1 | /* $OpenBSD: p12_decr.c,v 1.25 2024/02/18 15:44:10 tb 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -77,7 +77,7 @@ PKCS12_pbe_crypt(const X509_ALGOR *algor, const char *pass, int passlen, | |||
77 | int outlen, i; | 77 | int outlen, i; |
78 | EVP_CIPHER_CTX ctx; | 78 | EVP_CIPHER_CTX ctx; |
79 | 79 | ||
80 | EVP_CIPHER_CTX_init(&ctx); | 80 | EVP_CIPHER_CTX_legacy_clear(&ctx); |
81 | /* Decrypt data */ | 81 | /* Decrypt data */ |
82 | if (!EVP_PBE_CipherInit(algor->algorithm, pass, passlen, | 82 | if (!EVP_PBE_CipherInit(algor->algorithm, pass, passlen, |
83 | algor->parameter, &ctx, en_de)) { | 83 | algor->parameter, &ctx, en_de)) { |