diff options
author | Pauli <paul.dale@oracle.com> | 2020-01-14 09:38:09 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-01-16 07:07:27 +1000 |
commit | a8fca7284a98ca58804e17ade92fadd7a62056ae (patch) | |
tree | 772f41a9e4b5058da12f0a0df765d75314519131 /crypto | |
parent | ae856791e264fed50b8ee5070fcee7af11e7691c (diff) |
Deprecate the low level RC4 functions
Use of the low level RC4 functions has been informally discouraged for a long
time. We now formally deprecate them.
Applications should instead use the EVP APIs, e.g. EVP_EncryptInit_ex,
EVP_EncryptUpdate, EVP_EncryptFinal_ex and the equivalently named decrypt
functions.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10834)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/engine/eng_openssl.c | 6 | ||||
-rw-r--r-- | crypto/evp/e_rc4.c | 6 | ||||
-rw-r--r-- | crypto/evp/e_rc4_hmac_md5.c | 6 | ||||
-rw-r--r-- | crypto/rc4/rc4_enc.c | 6 | ||||
-rw-r--r-- | crypto/rc4/rc4_skey.c | 6 |
5 files changed, 30 insertions, 0 deletions
diff --git a/crypto/engine/eng_openssl.c b/crypto/engine/eng_openssl.c index b5c087830c..704268ad97 100644 --- a/crypto/engine/eng_openssl.c +++ b/crypto/engine/eng_openssl.c @@ -8,6 +8,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RC4 low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include <stdio.h> #include <openssl/crypto.h> #include "internal/cryptlib.h" diff --git a/crypto/evp/e_rc4.c b/crypto/evp/e_rc4.c index 092d6cf1db..f75e2d716e 100644 --- a/crypto/evp/e_rc4.c +++ b/crypto/evp/e_rc4.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RC4 low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include <stdio.h> #include "internal/cryptlib.h" diff --git a/crypto/evp/e_rc4_hmac_md5.c b/crypto/evp/e_rc4_hmac_md5.c index f0168219f1..fa838bf4b2 100644 --- a/crypto/evp/e_rc4_hmac_md5.c +++ b/crypto/evp/e_rc4_hmac_md5.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RC4 low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include <internal/cryptlib.h> #include <openssl/opensslconf.h> diff --git a/crypto/rc4/rc4_enc.c b/crypto/rc4/rc4_enc.c index c4753d93e0..8479091c6c 100644 --- a/crypto/rc4/rc4_enc.c +++ b/crypto/rc4/rc4_enc.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RC4 low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include <openssl/rc4.h> #include "rc4_local.h" diff --git a/crypto/rc4/rc4_skey.c b/crypto/rc4/rc4_skey.c index 42c4a20860..e9d60ca03a 100644 --- a/crypto/rc4/rc4_skey.c +++ b/crypto/rc4/rc4_skey.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RC4 low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include <openssl/rc4.h> #include "rc4_local.h" #include <openssl/opensslv.h> |