diff options
author | tb <> | 2024-02-18 15:45:42 +0000 |
---|---|---|
committer | tb <> | 2024-02-18 15:45:42 +0000 |
commit | 46825b346de88f3d8b554aef8711f11431f7e17c (patch) | |
tree | 9047d6e85fd9fcd495ed303a0ed1b208200ff841 /src/lib/libcrypto/evp/p_verify.c | |
parent | 39b6299876ec6c908309c9f47f3940eb84b3be12 (diff) | |
download | openbsd-46825b346de88f3d8b554aef8711f11431f7e17c.tar.gz openbsd-46825b346de88f3d8b554aef8711f11431f7e17c.tar.bz2 openbsd-46825b346de88f3d8b554aef8711f11431f7e17c.zip |
Use EVP_MD_CTX_legacy_clear() internally
ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/p_verify.c')
-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)) |