diff options
| author | tb <> | 2024-02-18 15:45:42 +0000 |
|---|---|---|
| committer | tb <> | 2024-02-18 15:45:42 +0000 |
| commit | ff3e386de60f6149938edb124d31bc2fd7ae04f6 (patch) | |
| tree | 9047d6e85fd9fcd495ed303a0ed1b208200ff841 /src/lib/libcrypto/evp/evp_pbe.c | |
| parent | f941ba215d7859bf6c6225e88cbbe13260428b8c (diff) | |
| download | openbsd-ff3e386de60f6149938edb124d31bc2fd7ae04f6.tar.gz openbsd-ff3e386de60f6149938edb124d31bc2fd7ae04f6.tar.bz2 openbsd-ff3e386de60f6149938edb124d31bc2fd7ae04f6.zip | |
Use EVP_MD_CTX_legacy_clear() internally
ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/evp_pbe.c')
| -rw-r--r-- | src/lib/libcrypto/evp/evp_pbe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/evp_pbe.c b/src/lib/libcrypto/evp/evp_pbe.c index bb0c227ae7..eb8d5c4157 100644 --- a/src/lib/libcrypto/evp/evp_pbe.c +++ b/src/lib/libcrypto/evp/evp_pbe.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp_pbe.c,v 1.41 2024/02/01 17:11:58 tb Exp $ */ | 1 | /* $OpenBSD: evp_pbe.c,v 1.42 2024/02/18 15:45:42 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 | */ |
| @@ -266,7 +266,7 @@ PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *cctx, const char *pass, int passlen, | |||
| 266 | else if (passlen == -1) | 266 | else if (passlen == -1) |
| 267 | passlen = strlen(pass); | 267 | passlen = strlen(pass); |
| 268 | 268 | ||
| 269 | EVP_MD_CTX_init(&ctx); | 269 | EVP_MD_CTX_legacy_clear(&ctx); |
| 270 | 270 | ||
| 271 | if (!EVP_DigestInit_ex(&ctx, md, NULL)) | 271 | if (!EVP_DigestInit_ex(&ctx, md, NULL)) |
| 272 | goto err; | 272 | goto err; |
