diff options
author | Pauli <paul.dale@oracle.com> | 2020-02-12 15:03:51 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-02-20 18:58:40 +1000 |
commit | c5f8713443c8d606ff149b12c478cd6162f2a7ac (patch) | |
tree | 536ea6ba3fdf7e0f4e80ef2b50f8f979cfb730a2 /crypto/rsa | |
parent | b9f733c2846329ca6ee6b906b2291e31c0c14183 (diff) | |
download | openssl-new-c5f8713443c8d606ff149b12c478cd6162f2a7ac.tar.gz |
Deprecate the low level RSA functions.
Use of the low level RSA functions has been informally discouraged for a
long time. We now formally deprecate them.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11063)
Diffstat (limited to 'crypto/rsa')
-rw-r--r-- | crypto/rsa/rsa_ameth.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_asn1.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_chk.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_crpt.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_depr.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_gen.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_lib.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_meth.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_none.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_oaep.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_ossl.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_pk1.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_pmeth.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_prn.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_pss.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_saos.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_sign.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_ssl.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_x931.c | 6 | ||||
-rw-r--r-- | crypto/rsa/rsa_x931g.c | 6 |
20 files changed, 120 insertions, 0 deletions
diff --git a/crypto/rsa/rsa_ameth.c b/crypto/rsa/rsa_ameth.c index a94cb54b5e..71aa435bd7 100644 --- a/crypto/rsa/rsa_ameth.c +++ b/crypto/rsa/rsa_ameth.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA 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" #include <openssl/asn1t.h> diff --git a/crypto/rsa/rsa_asn1.c b/crypto/rsa/rsa_asn1.c index e6b81253fa..8798bd52d6 100644 --- a/crypto/rsa/rsa_asn1.c +++ b/crypto/rsa/rsa_asn1.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA 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" #include <openssl/bn.h> diff --git a/crypto/rsa/rsa_chk.c b/crypto/rsa/rsa_chk.c index 6ba0010c77..e6b700bc0d 100644 --- a/crypto/rsa/rsa_chk.c +++ b/crypto/rsa/rsa_chk.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/bn.h> #include <openssl/err.h> #include "crypto/rsa.h" diff --git a/crypto/rsa/rsa_crpt.c b/crypto/rsa/rsa_crpt.c index 6abee298c6..83cae46103 100644 --- a/crypto/rsa/rsa_crpt.c +++ b/crypto/rsa/rsa_crpt.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA 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/rsa/rsa_depr.c b/crypto/rsa/rsa_depr.c index ed63262645..8ba6e8c2ee 100644 --- a/crypto/rsa/rsa_depr.c +++ b/crypto/rsa/rsa_depr.c @@ -12,6 +12,12 @@ * "new" versions). */ +/* + * RSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/opensslconf.h> #ifdef OPENSSL_NO_DEPRECATED_0_9_8 NON_EMPTY_TRANSLATION_UNIT diff --git a/crypto/rsa/rsa_gen.c b/crypto/rsa/rsa_gen.c index cb2abff6a1..5778bdada5 100644 --- a/crypto/rsa/rsa_gen.c +++ b/crypto/rsa/rsa_gen.c @@ -13,6 +13,12 @@ * Geoff */ +/* + * RSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <stdio.h> #include <time.h> #include "internal/cryptlib.h" diff --git a/crypto/rsa/rsa_lib.c b/crypto/rsa/rsa_lib.c index d6c5da752b..c43c9fdd48 100644 --- a/crypto/rsa/rsa_lib.c +++ b/crypto/rsa/rsa_lib.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA 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 <openssl/core_names.h> diff --git a/crypto/rsa/rsa_meth.c b/crypto/rsa/rsa_meth.c index a2a0426ee4..6bbe21814e 100644 --- a/crypto/rsa/rsa_meth.c +++ b/crypto/rsa/rsa_meth.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <string.h> #include "rsa_local.h" #include <openssl/err.h> diff --git a/crypto/rsa/rsa_none.c b/crypto/rsa/rsa_none.c index 833ab94028..5298ca7328 100644 --- a/crypto/rsa/rsa_none.c +++ b/crypto/rsa/rsa_none.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include "internal/cryptlib.h" #include <openssl/bn.h> #include <openssl/rsa.h> diff --git a/crypto/rsa/rsa_oaep.c b/crypto/rsa/rsa_oaep.c index d1150f09a8..23fb8f9f2b 100644 --- a/crypto/rsa/rsa_oaep.c +++ b/crypto/rsa/rsa_oaep.c @@ -20,6 +20,12 @@ * one-wayness. For the RSA function, this is an equivalent notion. */ +/* + * RSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include "internal/constant_time.h" #include <stdio.h> diff --git a/crypto/rsa/rsa_ossl.c b/crypto/rsa/rsa_ossl.c index 6332a5a411..4b54aa86fe 100644 --- a/crypto/rsa/rsa_ossl.c +++ b/crypto/rsa/rsa_ossl.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include "internal/cryptlib.h" #include "crypto/bn.h" #include "rsa_local.h" diff --git a/crypto/rsa/rsa_pk1.c b/crypto/rsa/rsa_pk1.c index eedc558e3f..33391c4fcb 100644 --- a/crypto/rsa/rsa_pk1.c +++ b/crypto/rsa/rsa_pk1.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include "internal/constant_time.h" #include <stdio.h> diff --git a/crypto/rsa/rsa_pmeth.c b/crypto/rsa/rsa_pmeth.c index 34cbba658e..174271874a 100644 --- a/crypto/rsa/rsa_pmeth.c +++ b/crypto/rsa/rsa_pmeth.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include "internal/constant_time.h" #include <stdio.h> diff --git a/crypto/rsa/rsa_prn.c b/crypto/rsa/rsa_prn.c index 5e4c098a16..1e52e9e3e6 100644 --- a/crypto/rsa/rsa_prn.c +++ b/crypto/rsa/rsa_prn.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA 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" #include <openssl/rsa.h> diff --git a/crypto/rsa/rsa_pss.c b/crypto/rsa/rsa_pss.c index 15014ef4b1..054fca9fd1 100644 --- a/crypto/rsa/rsa_pss.c +++ b/crypto/rsa/rsa_pss.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA 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" #include <openssl/bn.h> diff --git a/crypto/rsa/rsa_saos.c b/crypto/rsa/rsa_saos.c index 7041535cc0..e7041ca2ae 100644 --- a/crypto/rsa/rsa_saos.c +++ b/crypto/rsa/rsa_saos.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA 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" #include <openssl/bn.h> diff --git a/crypto/rsa/rsa_sign.c b/crypto/rsa/rsa_sign.c index 6479d12684..31b8ed11fa 100644 --- a/crypto/rsa/rsa_sign.c +++ b/crypto/rsa/rsa_sign.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA 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" #include <openssl/bn.h> diff --git a/crypto/rsa/rsa_ssl.c b/crypto/rsa/rsa_ssl.c index 99e541881d..48731dfb90 100644 --- a/crypto/rsa/rsa_ssl.c +++ b/crypto/rsa/rsa_ssl.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA 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" #include <openssl/bn.h> diff --git a/crypto/rsa/rsa_x931.c b/crypto/rsa/rsa_x931.c index 3caafb699f..7a1503752f 100644 --- a/crypto/rsa/rsa_x931.c +++ b/crypto/rsa/rsa_x931.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA 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" #include <openssl/bn.h> diff --git a/crypto/rsa/rsa_x931g.c b/crypto/rsa/rsa_x931g.c index 1f6042a3d2..7b65133ec8 100644 --- a/crypto/rsa/rsa_x931g.c +++ b/crypto/rsa/rsa_x931g.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * RSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <stdio.h> #include <string.h> #include <time.h> |