diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/evp/p_verify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/p_verify.c b/src/lib/libcrypto/evp/p_verify.c index da7ab5425a..ed9b3700fe 100644 --- a/src/lib/libcrypto/evp/p_verify.c +++ b/src/lib/libcrypto/evp/p_verify.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: p_verify.c,v 1.18 2023/07/07 19:37:54 beck Exp $ */ | 1 | /* $OpenBSD: p_verify.c,v 1.19 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 | * |
| @@ -75,7 +75,7 @@ EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf, | |||
| 75 | EVP_PKEY_CTX *pkctx = NULL; | 75 | EVP_PKEY_CTX *pkctx = NULL; |
| 76 | int ret = 0; | 76 | int ret = 0; |
| 77 | 77 | ||
| 78 | EVP_MD_CTX_init(&tmp_ctx); | 78 | EVP_MD_CTX_legacy_clear(&tmp_ctx); |
| 79 | if (!EVP_MD_CTX_copy_ex(&tmp_ctx, ctx)) | 79 | if (!EVP_MD_CTX_copy_ex(&tmp_ctx, ctx)) |
| 80 | goto err; | 80 | goto err; |
| 81 | if (!EVP_DigestFinal_ex(&tmp_ctx, &(m[0]), &m_len)) | 81 | if (!EVP_DigestFinal_ex(&tmp_ctx, &(m[0]), &m_len)) |
