diff options
Diffstat (limited to 'src/lib/libcrypto/evp/evp_digest.c')
-rw-r--r-- | src/lib/libcrypto/evp/evp_digest.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/evp/evp_digest.c b/src/lib/libcrypto/evp/evp_digest.c index 3a349ad0e6..b8eedd429d 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.10 2024/02/18 15:45:42 tb Exp $ */ | 1 | /* $OpenBSD: evp_digest.c,v 1.11 2024/03/02 09:55:30 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 | * |
@@ -247,15 +247,15 @@ EVP_MD_CTX_destroy(EVP_MD_CTX *ctx) | |||
247 | } | 247 | } |
248 | 248 | ||
249 | void | 249 | void |
250 | EVP_MD_CTX_init(EVP_MD_CTX *ctx) | 250 | EVP_MD_CTX_legacy_clear(EVP_MD_CTX *ctx) |
251 | { | 251 | { |
252 | memset(ctx, 0, sizeof(*ctx)); | 252 | memset(ctx, 0, sizeof(*ctx)); |
253 | } | 253 | } |
254 | 254 | ||
255 | void | 255 | int |
256 | EVP_MD_CTX_legacy_clear(EVP_MD_CTX *ctx) | 256 | EVP_MD_CTX_init(EVP_MD_CTX *ctx) |
257 | { | 257 | { |
258 | memset(ctx, 0, sizeof(*ctx)); | 258 | return EVP_MD_CTX_cleanup(ctx); |
259 | } | 259 | } |
260 | 260 | ||
261 | int | 261 | int |