diff options
author | beck <> | 2024-04-10 15:00:38 +0000 |
---|---|---|
committer | beck <> | 2024-04-10 15:00:38 +0000 |
commit | 8b041422435150e802f8d2bda683ae248b607c20 (patch) | |
tree | 0c45d2cbdada96b065c8962e4b4ab01b5a7f05bc /src/lib/libcrypto/evp/evp_cipher.c | |
parent | 7a88601975769471c321595f58d58baf8601e37f (diff) | |
download | openbsd-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.c | 6 |
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 | } |
267 | LCRYPTO_ALIAS(EVP_CipherFinal); | ||
267 | 268 | ||
268 | int | 269 | int |
269 | EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) | 270 | EVP_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 | } |
431 | LCRYPTO_ALIAS(EVP_EncryptFinal); | ||
430 | 432 | ||
431 | int | 433 | int |
432 | EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) | 434 | EVP_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 | } |
559 | LCRYPTO_ALIAS(EVP_DecryptFinal); | ||
557 | 560 | ||
558 | int | 561 | int |
559 | EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) | 562 | EVP_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 | } |
644 | LCRYPTO_ALIAS(EVP_CIPHER_CTX_init); | ||
641 | 645 | ||
642 | int | 646 | int |
643 | EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx) | 647 | EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *ctx) |