From 0ae5d4d6f8a0cd17fb9beb5876827f311c1b350c Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 2 Jan 2020 16:15:26 +0000 Subject: Deprecate the Low Level CAST APIs Applications should instead use the higher level EVP APIs, e.g. EVP_Encrypt*() and EVP_Decrypt*(). Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/10742) --- providers/implementations/ciphers/cipher_cast5.c | 6 ++++++ providers/implementations/ciphers/cipher_cast5_hw.c | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'providers') diff --git a/providers/implementations/ciphers/cipher_cast5.c b/providers/implementations/ciphers/cipher_cast5.c index 473a7f02b9..24cb59d103 100644 --- a/providers/implementations/ciphers/cipher_cast5.c +++ b/providers/implementations/ciphers/cipher_cast5.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * CAST low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + /* Dispatch functions for cast cipher modes ecb, cbc, ofb, cfb */ #include "cipher_cast.h" diff --git a/providers/implementations/ciphers/cipher_cast5_hw.c b/providers/implementations/ciphers/cipher_cast5_hw.c index 227e90d7a7..beeeb593f0 100644 --- a/providers/implementations/ciphers/cipher_cast5_hw.c +++ b/providers/implementations/ciphers/cipher_cast5_hw.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * CAST low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include "cipher_cast.h" static int cipher_hw_cast5_initkey(PROV_CIPHER_CTX *ctx, -- cgit v1.2.3