* lib/sha3.c (sha3_##SIZE##_init_ctx): Avoid deprecated macro name. --- ChangeLog | 3 +++ lib/sha3.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog index cabca53248..9750ee1e80 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2026-02-22 Paul Eggert <[email protected]> + crypto/sha3: EVP_MD_CTX_create → EVP_MD_CTX_new + * lib/sha3.c (sha3_##SIZE##_init_ctx): Avoid deprecated macro name. + crypto/sha3: fix errno when freeing * lib/sha3.c (sha3_free_ctx): Preserve errno. * modules/crypto/sha3 (Depends-on): diff --git a/lib/sha3.c b/lib/sha3.c index 2a97190e07..2c3b932b91 100644 --- a/lib/sha3.c +++ b/lib/sha3.c @@ -338,7 +338,7 @@ sha3_process_block (const void *buffer, size_t len, struct sha3_ctx *ctx) sha3_##SIZE##_init_ctx (struct sha3_ctx *ctx) \ { \ int result; \ - ctx->evp_ctx = EVP_MD_CTX_create (); \ + ctx->evp_ctx = EVP_MD_CTX_new (); \ if (ctx->evp_ctx == NULL) \ { \ errno = ENOMEM; \ -- 2.51.0
