diff options
author | Pauli <paul.dale@oracle.com> | 2020-01-28 15:14:18 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-02-04 20:02:55 +1000 |
commit | 579422c85cf606c0ae1d4baf414010dc21da657a (patch) | |
tree | de91afc5811afe2f3f9970afedbae4bafc0ca27b /crypto | |
parent | 5e3f9aa4e9a915f25b36bb085515d4786a253385 (diff) | |
download | openssl-579422c85cf606c0ae1d4baf414010dc21da657a.tar.gz |
Deprecate the ECDSA and EV_KEY_METHOD functions.
Use of the low level ECDSA and EC_KEY_METHOD functions has been informally discouraged for a
long time. We now formally deprecate them.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10960)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/ec/curve25519.c | 6 | ||||
-rw-r--r-- | crypto/ec/ec2_oct.c | 6 | ||||
-rw-r--r-- | crypto/ec/ec2_smpl.c | 6 | ||||
-rw-r--r-- | crypto/ec/ec_ameth.c | 6 | ||||
-rw-r--r-- | crypto/ec/ec_asn1.c | 6 | ||||
-rw-r--r-- | crypto/ec/ec_check.c | 6 | ||||
-rw-r--r-- | crypto/ec/ec_curve.c | 6 | ||||
-rw-r--r-- | crypto/ec/ec_cvt.c | 6 | ||||
-rw-r--r-- | crypto/ec/ec_key.c | 6 | ||||
-rw-r--r-- | crypto/ec/ec_lib.c | 6 | ||||
-rw-r--r-- | crypto/ec/ec_mult.c | 6 | ||||
-rw-r--r-- | crypto/ec/ec_oct.c | 6 | ||||
-rw-r--r-- | crypto/ec/ec_print.c | 6 | ||||
-rw-r--r-- | crypto/ec/ecdh_ossl.c | 6 | ||||
-rw-r--r-- | crypto/ec/ecdsa_ossl.c | 6 | ||||
-rw-r--r-- | crypto/ec/ecdsa_sign.c | 6 | ||||
-rw-r--r-- | crypto/ec/ecdsa_vrf.c | 6 | ||||
-rw-r--r-- | crypto/ec/ecp_mont.c | 6 | ||||
-rw-r--r-- | crypto/ec/ecp_nist.c | 6 | ||||
-rw-r--r-- | crypto/ec/ecp_nistp224.c | 6 | ||||
-rw-r--r-- | crypto/ec/ecp_nistp256.c | 6 | ||||
-rw-r--r-- | crypto/ec/ecp_nistp521.c | 6 | ||||
-rw-r--r-- | crypto/ec/ecp_nistputil.c | 6 | ||||
-rw-r--r-- | crypto/ec/ecp_nistz256.c | 6 | ||||
-rw-r--r-- | crypto/ec/ecp_oct.c | 6 | ||||
-rw-r--r-- | crypto/ec/ecp_smpl.c | 6 | ||||
-rw-r--r-- | crypto/ec/ecx_meth.c | 6 | ||||
-rw-r--r-- | crypto/sm2/sm2_crypt.c | 6 | ||||
-rw-r--r-- | crypto/sm2/sm2_pmeth.c | 6 | ||||
-rw-r--r-- | crypto/x509/x_all.c | 6 |
30 files changed, 180 insertions, 0 deletions
diff --git a/crypto/ec/curve25519.c b/crypto/ec/curve25519.c index a512aeb237..6672f5d249 100644 --- a/crypto/ec/curve25519.c +++ b/crypto/ec/curve25519.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <string.h> #include "ec_local.h" #include <openssl/evp.h> diff --git a/crypto/ec/ec2_oct.c b/crypto/ec/ec2_oct.c index 1f92680f7b..38218f64c1 100644 --- a/crypto/ec/ec2_oct.c +++ b/crypto/ec/ec2_oct.c @@ -8,6 +8,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/err.h> #include "ec_local.h" diff --git a/crypto/ec/ec2_smpl.c b/crypto/ec/ec2_smpl.c index 21ce6e12d3..593f543e1a 100644 --- a/crypto/ec/ec2_smpl.c +++ b/crypto/ec/ec2_smpl.c @@ -8,6 +8,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/err.h> #include "crypto/bn.h" diff --git a/crypto/ec/ec_ameth.c b/crypto/ec/ec_ameth.c index f38ab103ab..d2c8c399de 100644 --- a/crypto/ec/ec_ameth.c +++ b/crypto/ec/ec_ameth.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDH and ECDSA 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/x509.h> diff --git a/crypto/ec/ec_asn1.c b/crypto/ec/ec_asn1.c index 0567f2ab06..f61d8860a4 100644 --- a/crypto/ec/ec_asn1.c +++ b/crypto/ec/ec_asn1.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <string.h> #include "ec_local.h" #include <openssl/err.h> diff --git a/crypto/ec/ec_check.c b/crypto/ec/ec_check.c index f8723aab47..bb39177d64 100644 --- a/crypto/ec/ec_check.c +++ b/crypto/ec/ec_check.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include "ec_local.h" #include <openssl/err.h> diff --git a/crypto/ec/ec_curve.c b/crypto/ec/ec_curve.c index 2639b1b547..5951615ec2 100644 --- a/crypto/ec/ec_curve.c +++ b/crypto/ec/ec_curve.c @@ -8,6 +8,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <string.h> #include "ec_local.h" #include <openssl/err.h> diff --git a/crypto/ec/ec_cvt.c b/crypto/ec/ec_cvt.c index 0fdd5f672c..030c299070 100644 --- a/crypto/ec/ec_cvt.c +++ b/crypto/ec/ec_cvt.c @@ -8,6 +8,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/err.h> #include "crypto/bn.h" #include "ec_local.h" diff --git a/crypto/ec/ec_key.c b/crypto/ec/ec_key.c index 2ae5a654c3..a0cd5b9bda 100644 --- a/crypto/ec/ec_key.c +++ b/crypto/ec/ec_key.c @@ -8,6 +8,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include "internal/cryptlib.h" #include <string.h> #include "ec_local.h" diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c index 168cf72973..078d8b35fa 100644 --- a/crypto/ec/ec_lib.c +++ b/crypto/ec/ec_lib.c @@ -8,6 +8,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <string.h> #include <openssl/err.h> diff --git a/crypto/ec/ec_mult.c b/crypto/ec/ec_mult.c index 2f2e66c679..17aacf877b 100644 --- a/crypto/ec/ec_mult.c +++ b/crypto/ec/ec_mult.c @@ -8,6 +8,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <string.h> #include <openssl/err.h> diff --git a/crypto/ec/ec_oct.c b/crypto/ec/ec_oct.c index 041c442b62..ba2de89656 100644 --- a/crypto/ec/ec_oct.c +++ b/crypto/ec/ec_oct.c @@ -8,6 +8,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <string.h> #include <openssl/err.h> diff --git a/crypto/ec/ec_print.c b/crypto/ec/ec_print.c index c76d7034a2..e3fd17d59e 100644 --- a/crypto/ec/ec_print.c +++ b/crypto/ec/ec_print.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/crypto.h> #include <openssl/err.h> #include "ec_local.h" diff --git a/crypto/ec/ecdh_ossl.c b/crypto/ec/ecdh_ossl.c index 30b8837187..89761a9fdd 100644 --- a/crypto/ec/ecdh_ossl.c +++ b/crypto/ec/ecdh_ossl.c @@ -8,6 +8,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDH low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <string.h> #include <limits.h> diff --git a/crypto/ec/ecdsa_ossl.c b/crypto/ec/ecdsa_ossl.c index 8de22ba910..e9291b17a6 100644 --- a/crypto/ec/ecdsa_ossl.c +++ b/crypto/ec/ecdsa_ossl.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <string.h> #include <openssl/err.h> #include <openssl/obj_mac.h> diff --git a/crypto/ec/ecdsa_sign.c b/crypto/ec/ecdsa_sign.c index 7d0215b326..d602008164 100644 --- a/crypto/ec/ecdsa_sign.c +++ b/crypto/ec/ecdsa_sign.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/ec.h> #include "ec_local.h" #include <openssl/err.h> diff --git a/crypto/ec/ecdsa_vrf.c b/crypto/ec/ecdsa_vrf.c index 60f4af0426..255c4eeea2 100644 --- a/crypto/ec/ecdsa_vrf.c +++ b/crypto/ec/ecdsa_vrf.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/ec.h> #include "ec_local.h" #include <openssl/err.h> diff --git a/crypto/ec/ecp_mont.c b/crypto/ec/ecp_mont.c index 44b6635361..a81f79029c 100644 --- a/crypto/ec/ecp_mont.c +++ b/crypto/ec/ecp_mont.c @@ -8,6 +8,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/err.h> #include "ec_local.h" diff --git a/crypto/ec/ecp_nist.c b/crypto/ec/ecp_nist.c index 3b5666d15c..e5aad5890e 100644 --- a/crypto/ec/ecp_nist.c +++ b/crypto/ec/ecp_nist.c @@ -8,6 +8,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <limits.h> #include <openssl/err.h> diff --git a/crypto/ec/ecp_nistp224.c b/crypto/ec/ecp_nistp224.c index 6777d32244..f52e55b7ed 100644 --- a/crypto/ec/ecp_nistp224.c +++ b/crypto/ec/ecp_nistp224.c @@ -24,6 +24,12 @@ */ /* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + +/* * A 64-bit implementation of the NIST P-224 elliptic curve point multiplication * * Inspired by Daniel J. Bernstein's public domain nistp224 implementation diff --git a/crypto/ec/ecp_nistp256.c b/crypto/ec/ecp_nistp256.c index 954263c960..d9c98c83ad 100644 --- a/crypto/ec/ecp_nistp256.c +++ b/crypto/ec/ecp_nistp256.c @@ -24,6 +24,12 @@ */ /* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + +/* * A 64-bit implementation of the NIST P-256 elliptic curve point multiplication * * OpenSSL integration was taken from Emilia Kasper's work in ecp_nistp224.c. diff --git a/crypto/ec/ecp_nistp521.c b/crypto/ec/ecp_nistp521.c index 78a98c7187..d09553fec8 100644 --- a/crypto/ec/ecp_nistp521.c +++ b/crypto/ec/ecp_nistp521.c @@ -24,6 +24,12 @@ */ /* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + +/* * A 64-bit implementation of the NIST P-521 elliptic curve point multiplication * * OpenSSL integration was taken from Emilia Kasper's work in ecp_nistp224.c. diff --git a/crypto/ec/ecp_nistputil.c b/crypto/ec/ecp_nistputil.c index 98e0b72d10..d3739a108c 100644 --- a/crypto/ec/ecp_nistputil.c +++ b/crypto/ec/ecp_nistputil.c @@ -23,6 +23,12 @@ * limitations under the License. */ +/* + * ECDSA 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_EC_NISTP_64_GCC_128 NON_EMPTY_TRANSLATION_UNIT diff --git a/crypto/ec/ecp_nistz256.c b/crypto/ec/ecp_nistz256.c index 1609c4bbf7..d9709da4f4 100644 --- a/crypto/ec/ecp_nistz256.c +++ b/crypto/ec/ecp_nistz256.c @@ -18,6 +18,12 @@ * 256 Bit Primes" */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <string.h> #include "internal/cryptlib.h" diff --git a/crypto/ec/ecp_oct.c b/crypto/ec/ecp_oct.c index e6bc153f51..1455f9c16c 100644 --- a/crypto/ec/ecp_oct.c +++ b/crypto/ec/ecp_oct.c @@ -8,6 +8,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/err.h> #include <openssl/symhacks.h> diff --git a/crypto/ec/ecp_smpl.c b/crypto/ec/ecp_smpl.c index e06177ee14..005ab1ec65 100644 --- a/crypto/ec/ecp_smpl.c +++ b/crypto/ec/ecp_smpl.c @@ -8,6 +8,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/err.h> #include <openssl/symhacks.h> diff --git a/crypto/ec/ecx_meth.c b/crypto/ec/ecx_meth.c index 4e3c630bd2..525fcd343f 100644 --- a/crypto/ec/ecx_meth.c +++ b/crypto/ec/ecx_meth.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA 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/x509.h> diff --git a/crypto/sm2/sm2_crypt.c b/crypto/sm2/sm2_crypt.c index 102f02651a..934c957d8b 100644 --- a/crypto/sm2/sm2_crypt.c +++ b/crypto/sm2/sm2_crypt.c @@ -9,6 +9,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include "crypto/sm2.h" #include "crypto/sm2err.h" #include "crypto/ec.h" /* ecdh_KDF_X9_63() */ diff --git a/crypto/sm2/sm2_pmeth.c b/crypto/sm2/sm2_pmeth.c index 1068b7b901..681a0ab130 100644 --- a/crypto/sm2/sm2_pmeth.c +++ b/crypto/sm2/sm2_pmeth.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * ECDSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include "internal/cryptlib.h" #include <openssl/asn1t.h> #include <openssl/ec.h> diff --git a/crypto/x509/x_all.c b/crypto/x509/x_all.c index 9af26e69f0..5a5f098558 100644 --- a/crypto/x509/x_all.c +++ b/crypto/x509/x_all.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * 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/buffer.h> |