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_key.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_key.c')
| -rw-r--r-- | src/lib/libcrypto/evp/evp_key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/evp_key.c b/src/lib/libcrypto/evp/evp_key.c index 1f3d758268..f51584b84b 100644 --- a/src/lib/libcrypto/evp/evp_key.c +++ b/src/lib/libcrypto/evp/evp_key.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp_key.c,v 1.33 2024/01/05 10:18:52 tb Exp $ */ | 1 | /* $OpenBSD: evp_key.c,v 1.34 2024/02/18 15:45:42 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -156,7 +156,7 @@ EVP_BytesToKey(const EVP_CIPHER *type, const EVP_MD *md, | |||
| 156 | if (data == NULL) | 156 | if (data == NULL) |
| 157 | return nkey; | 157 | return nkey; |
| 158 | 158 | ||
| 159 | EVP_MD_CTX_init(&c); | 159 | EVP_MD_CTX_legacy_clear(&c); |
| 160 | for (;;) { | 160 | for (;;) { |
| 161 | if (!EVP_DigestInit_ex(&c, md, NULL)) | 161 | if (!EVP_DigestInit_ex(&c, md, NULL)) |
| 162 | goto err; | 162 | goto err; |
