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_sign.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_sign.c')
-rw-r--r-- | src/lib/libcrypto/evp/p_sign.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/p_sign.c b/src/lib/libcrypto/evp/p_sign.c index f7c21178a0..f6d6e12a30 100644 --- a/src/lib/libcrypto/evp/p_sign.c +++ b/src/lib/libcrypto/evp/p_sign.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p_sign.c,v 1.19 2023/07/07 19:37:54 beck Exp $ */ | 1 | /* $OpenBSD: p_sign.c,v 1.20 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 | * |
@@ -77,7 +77,7 @@ EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, | |||
77 | int ret = 0; | 77 | int ret = 0; |
78 | 78 | ||
79 | *siglen = 0; | 79 | *siglen = 0; |
80 | EVP_MD_CTX_init(&tmp_ctx); | 80 | EVP_MD_CTX_legacy_clear(&tmp_ctx); |
81 | if (!EVP_MD_CTX_copy_ex(&tmp_ctx, ctx)) | 81 | if (!EVP_MD_CTX_copy_ex(&tmp_ctx, ctx)) |
82 | goto err; | 82 | goto err; |
83 | if (!EVP_DigestFinal_ex(&tmp_ctx, &(m[0]), &m_len)) | 83 | if (!EVP_DigestFinal_ex(&tmp_ctx, &(m[0]), &m_len)) |