diff options
author | Pauli <paul.dale@oracle.com> | 2020-01-14 00:15:18 +0100 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-01-15 22:07:27 +0100 |
commit | ee2993abd0830ec27a2dd49e07db8d0eb5f3e579 (patch) | |
tree | 9c789bbe5b362cc30edaacac00ca8acd21c58f69 /crypto/rc2 | |
parent | rc2: fix preprocessor indentation (diff) | |
download | openssl-ee2993abd0830ec27a2dd49e07db8d0eb5f3e579.tar.xz openssl-ee2993abd0830ec27a2dd49e07db8d0eb5f3e579.zip |
Deprecate the low level RC2 functions
Use of the low level RC2 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/rc2')
-rw-r--r-- | crypto/rc2/rc2_cbc.c | 6 | ||||
-rw-r--r-- | crypto/rc2/rc2_ecb.c | 6 | ||||
-rw-r--r-- | crypto/rc2/rc2_skey.c | 6 | ||||
-rw-r--r-- | crypto/rc2/rc2cfb64.c | 6 | ||||
-rw-r--r-- | crypto/rc2/rc2ofb64.c | 6 |
5 files changed, 30 insertions, 0 deletions
diff --git a/crypto/rc2/rc2_cbc.c b/crypto/rc2/rc2_cbc.c index 58a4b3e615..acfd4fde1c 100644 --- a/crypto/rc2/rc2_cbc.c +++ b/crypto/rc2/rc2_cbc.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RC2 low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include <openssl/rc2.h> #include "rc2_local.h" diff --git a/crypto/rc2/rc2_ecb.c b/crypto/rc2/rc2_ecb.c index fec2c10174..da086e6598 100644 --- a/crypto/rc2/rc2_ecb.c +++ b/crypto/rc2/rc2_ecb.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RC2 low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include <openssl/rc2.h> #include "rc2_local.h" #include <openssl/opensslv.h> diff --git a/crypto/rc2/rc2_skey.c b/crypto/rc2/rc2_skey.c index 33068d4802..542ce0f6f9 100644 --- a/crypto/rc2/rc2_skey.c +++ b/crypto/rc2/rc2_skey.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RC2 low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include <openssl/rc2.h> #include "rc2_local.h" diff --git a/crypto/rc2/rc2cfb64.c b/crypto/rc2/rc2cfb64.c index 9b85368db1..298be79d44 100644 --- a/crypto/rc2/rc2cfb64.c +++ b/crypto/rc2/rc2cfb64.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RC2 low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include <openssl/rc2.h> #include "rc2_local.h" diff --git a/crypto/rc2/rc2ofb64.c b/crypto/rc2/rc2ofb64.c index 4270009e51..097f8befe0 100644 --- a/crypto/rc2/rc2ofb64.c +++ b/crypto/rc2/rc2ofb64.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RC2 low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include <openssl/rc2.h> #include "rc2_local.h" |