summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp_cipher.c
diff options
context:
space:
mode:
authorbeck <>2024-04-10 15:00:38 +0000
committerbeck <>2024-04-10 15:00:38 +0000
commit8b041422435150e802f8d2bda683ae248b607c20 (patch)
tree0c45d2cbdada96b065c8962e4b4ab01b5a7f05bc /src/lib/libcrypto/evp/evp_cipher.c
parent7a88601975769471c321595f58d58baf8601e37f (diff)
downloadopenbsd-8b041422435150e802f8d2bda683ae248b607c20.tar.gz
openbsd-8b041422435150e802f8d2bda683ae248b607c20.tar.bz2
openbsd-8b041422435150e802f8d2bda683ae248b607c20.zip
Hide deprecated functions in evp.h
use LCRYPTO_UNUSED and remove the LIBRESSL_INTERNAL guard around them. ok tb@
Diffstat (limited to 'src/lib/libcrypto/evp/evp_cipher.c')
-rw-r--r--src/lib/libcrypto/evp/evp_cipher.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp_cipher.c b/src/lib/libcrypto/evp/evp_cipher.c
index c4b5034c25..e9c266d1b9 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.22 2024/04/09 13:52:41 beck Exp $ */ 1/* $OpenBSD: evp_cipher.c,v 1.23 2024/04/10 15:00:38 beck 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 *
@@ -264,6 +264,7 @@ EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len)
264 264
265 return EVP_DecryptFinal_ex(ctx, out, out_len); 265 return EVP_DecryptFinal_ex(ctx, out, out_len);
266} 266}
267LCRYPTO_ALIAS(EVP_CipherFinal);
267 268
268int 269int
269EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) 270EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len)
@@ -427,6 +428,7 @@ EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len)
427{ 428{
428 return EVP_EncryptFinal_ex(ctx, out, out_len); 429 return EVP_EncryptFinal_ex(ctx, out, out_len);
429} 430}
431LCRYPTO_ALIAS(EVP_EncryptFinal);
430 432
431int 433int
432EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) 434EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len)
@@ -554,6 +556,7 @@ EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len)
554{ 556{
555 return EVP_DecryptFinal_ex(ctx, out, out_len); 557 return EVP_DecryptFinal_ex(ctx, out, out_len);
556} 558}
559LCRYPTO_ALIAS(EVP_DecryptFinal);
557 560
558int 561int
559EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) 562EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len)
@@ -638,6 +641,7 @@ EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *ctx)
638{ 641{
639 return EVP_CIPHER_CTX_cleanup(ctx); 642 return EVP_CIPHER_CTX_cleanup(ctx);
640} 643}
644LCRYPTO_ALIAS(EVP_CIPHER_CTX_init);
641 645
642int 646int
643EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx) 647EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx)