summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp_cipher.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/evp/evp_cipher.c')
-rw-r--r--src/lib/libcrypto/evp/evp_cipher.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/evp/evp_cipher.c b/src/lib/libcrypto/evp/evp_cipher.c
index c2a88a5591..48aaea0f1b 100644
--- a/src/lib/libcrypto/evp/evp_cipher.c
+++ b/src/lib/libcrypto/evp/evp_cipher.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_cipher.c,v 1.20 2024/02/24 08:00:37 tb Exp $ */ 1/* $OpenBSD: evp_cipher.c,v 1.21 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 *
@@ -613,15 +613,15 @@ EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx)
613} 613}
614 614
615void 615void
616EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *ctx) 616EVP_CIPHER_CTX_legacy_clear(EVP_CIPHER_CTX *ctx)
617{ 617{
618 memset(ctx, 0, sizeof(*ctx)); 618 memset(ctx, 0, sizeof(*ctx));
619} 619}
620 620
621void 621int
622EVP_CIPHER_CTX_legacy_clear(EVP_CIPHER_CTX *ctx) 622EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *ctx)
623{ 623{
624 memset(ctx, 0, sizeof(*ctx)); 624 return EVP_CIPHER_CTX_cleanup(ctx);
625} 625}
626 626
627int 627int