summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp_digest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/evp/evp_digest.c')
-rw-r--r--src/lib/libcrypto/evp/evp_digest.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp_digest.c b/src/lib/libcrypto/evp/evp_digest.c
index 9d8d94afb1..33ba923e72 100644
--- a/src/lib/libcrypto/evp/evp_digest.c
+++ b/src/lib/libcrypto/evp/evp_digest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_digest.c,v 1.8 2024/01/30 17:41:01 tb Exp $ */ 1/* $OpenBSD: evp_digest.c,v 1.9 2024/02/18 15:43:21 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 *
@@ -252,6 +252,12 @@ EVP_MD_CTX_init(EVP_MD_CTX *ctx)
252 memset(ctx, 0, sizeof(*ctx)); 252 memset(ctx, 0, sizeof(*ctx));
253} 253}
254 254
255void
256EVP_MD_CTX_legacy_clear(EVP_MD_CTX *ctx)
257{
258 memset(ctx, 0, sizeof(*ctx));
259}
260
255int 261int
256EVP_MD_CTX_reset(EVP_MD_CTX *ctx) 262EVP_MD_CTX_reset(EVP_MD_CTX *ctx)
257{ 263{