diff options
author | Pauli <paul.dale@oracle.com> | 2020-01-13 13:02:45 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-01-19 10:38:49 +1000 |
commit | da2d32f6db1c9fb33478af660daddcd1df369716 (patch) | |
tree | e35e8b89a18319fd8444d16a4fe5adad216fb8bc /crypto | |
parent | 621f74b3e3eeaa189c9d83dca7352612774ad23c (diff) |
Deprecate the low level IDEA functions.
Use of the low level IDEA 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: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10819)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/evp/e_idea.c | 7 | ||||
-rw-r--r-- | crypto/idea/i_cbc.c | 7 | ||||
-rw-r--r-- | crypto/idea/i_cfb64.c | 7 | ||||
-rw-r--r-- | crypto/idea/i_ecb.c | 7 | ||||
-rw-r--r-- | crypto/idea/i_ofb64.c | 7 | ||||
-rw-r--r-- | crypto/idea/i_skey.c | 7 |
6 files changed, 42 insertions, 0 deletions
diff --git a/crypto/evp/e_idea.c b/crypto/evp/e_idea.c index 8c3a554108..97170200a3 100644 --- a/crypto/evp/e_idea.c +++ b/crypto/evp/e_idea.c @@ -7,6 +7,13 @@ * https://www.openssl.org/source/license.html */ +/* + * IDEA low level APIs are deprecated for public use, but still ok for internal + * use where we're using them to implement the higher level EVP interface, as is + * the case here. + */ +#include "internal/deprecated.h" + #include <stdio.h> #include "internal/cryptlib.h" diff --git a/crypto/idea/i_cbc.c b/crypto/idea/i_cbc.c index a78841fcfc..987ba05ea1 100644 --- a/crypto/idea/i_cbc.c +++ b/crypto/idea/i_cbc.c @@ -7,6 +7,13 @@ * https://www.openssl.org/source/license.html */ +/* + * IDEA low level APIs are deprecated for public use, but still ok for internal + * use where we're using them to implement the higher level EVP interface, as is + * the case here. + */ +#include "internal/deprecated.h" + #include <openssl/idea.h> #include "idea_local.h" diff --git a/crypto/idea/i_cfb64.c b/crypto/idea/i_cfb64.c index 45c15b9474..50784f9027 100644 --- a/crypto/idea/i_cfb64.c +++ b/crypto/idea/i_cfb64.c @@ -7,6 +7,13 @@ * https://www.openssl.org/source/license.html */ +/* + * IDEA low level APIs are deprecated for public use, but still ok for internal + * use where we're using them to implement the higher level EVP interface, as is + * the case here. + */ +#include "internal/deprecated.h" + #include <openssl/idea.h> #include "idea_local.h" diff --git a/crypto/idea/i_ecb.c b/crypto/idea/i_ecb.c index 9fee121893..74cb35ae11 100644 --- a/crypto/idea/i_ecb.c +++ b/crypto/idea/i_ecb.c @@ -7,6 +7,13 @@ * https://www.openssl.org/source/license.html */ +/* + * IDEA low level APIs are deprecated for public use, but still ok for internal + * use where we're using them to implement the higher level EVP interface, as is + * the case here. + */ +#include "internal/deprecated.h" + #include <openssl/idea.h> #include "idea_local.h" #include <openssl/opensslv.h> diff --git a/crypto/idea/i_ofb64.c b/crypto/idea/i_ofb64.c index 517ded7bd6..bca1999ef9 100644 --- a/crypto/idea/i_ofb64.c +++ b/crypto/idea/i_ofb64.c @@ -7,6 +7,13 @@ * https://www.openssl.org/source/license.html */ +/* + * IDEA low level APIs are deprecated for public use, but still ok for internal + * use where we're using them to implement the higher level EVP interface, as is + * the case here. + */ +#include "internal/deprecated.h" + #include <openssl/idea.h> #include "idea_local.h" diff --git a/crypto/idea/i_skey.c b/crypto/idea/i_skey.c index 0b0221bd81..36bc2c9b1b 100644 --- a/crypto/idea/i_skey.c +++ b/crypto/idea/i_skey.c @@ -7,6 +7,13 @@ * https://www.openssl.org/source/license.html */ +/* + * IDEA low level APIs are deprecated for public use, but still ok for internal + * use where we're using them to implement the higher level EVP interface, as is + * the case here. + */ +#include "internal/deprecated.h" + #include <openssl/idea.h> #include "idea_local.h" |