diff options
author | Pauli <paul.dale@oracle.com> | 2020-01-30 07:23:39 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-02-12 08:52:41 +1000 |
commit | f41ac0eeab9d2889d44e3acf6ff1e8274d03d73e (patch) | |
tree | ba3620a537ece73983886b7449eab118e5869223 /crypto/dsa | |
parent | 7f6deaf68e42e979a2084989db2c32193825d1b3 (diff) | |
download | openssl-f41ac0eeab9d2889d44e3acf6ff1e8274d03d73e.zip openssl-f41ac0eeab9d2889d44e3acf6ff1e8274d03d73e.tar.gz openssl-f41ac0eeab9d2889d44e3acf6ff1e8274d03d73e.tar.bz2 |
Deprecate the low level DSA functions.
Use of the low level DSA 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/10977)
Diffstat (limited to 'crypto/dsa')
-rw-r--r-- | crypto/dsa/dsa_ameth.c | 6 | ||||
-rw-r--r-- | crypto/dsa/dsa_asn1.c | 6 | ||||
-rw-r--r-- | crypto/dsa/dsa_depr.c | 6 | ||||
-rw-r--r-- | crypto/dsa/dsa_gen.c | 6 | ||||
-rw-r--r-- | crypto/dsa/dsa_key.c | 6 | ||||
-rw-r--r-- | crypto/dsa/dsa_lib.c | 6 | ||||
-rw-r--r-- | crypto/dsa/dsa_meth.c | 2 | ||||
-rw-r--r-- | crypto/dsa/dsa_ossl.c | 6 | ||||
-rw-r--r-- | crypto/dsa/dsa_pmeth.c | 6 | ||||
-rw-r--r-- | crypto/dsa/dsa_prn.c | 6 | ||||
-rw-r--r-- | crypto/dsa/dsa_sign.c | 6 | ||||
-rw-r--r-- | crypto/dsa/dsa_vrf.c | 6 |
12 files changed, 68 insertions, 0 deletions
diff --git a/crypto/dsa/dsa_ameth.c b/crypto/dsa/dsa_ameth.c index a689284..9715a75 100644 --- a/crypto/dsa/dsa_ameth.c +++ b/crypto/dsa/dsa_ameth.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * DSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <stdio.h> #include <openssl/x509.h> #include <openssl/asn1.h> diff --git a/crypto/dsa/dsa_asn1.c b/crypto/dsa/dsa_asn1.c index ba1cbad..5586b6a 100644 --- a/crypto/dsa/dsa_asn1.c +++ b/crypto/dsa/dsa_asn1.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * DSA 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 "dsa_local.h" diff --git a/crypto/dsa/dsa_depr.c b/crypto/dsa/dsa_depr.c index 2b363e2..5c8f9af 100644 --- a/crypto/dsa/dsa_depr.c +++ b/crypto/dsa/dsa_depr.c @@ -13,6 +13,12 @@ */ /* + * DSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + +/* * Parameter generation follows the updated Appendix 2.2 for FIPS PUB 186, * also Appendix 2.2 of FIPS PUB 186-1 (i.e. use SHA as defined in FIPS PUB * 180-1) diff --git a/crypto/dsa/dsa_gen.c b/crypto/dsa/dsa_gen.c index aa6b84c..ac5907c 100644 --- a/crypto/dsa/dsa_gen.c +++ b/crypto/dsa/dsa_gen.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * DSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/opensslconf.h> #include <stdio.h> #include "internal/cryptlib.h" diff --git a/crypto/dsa/dsa_key.c b/crypto/dsa/dsa_key.c index e0a3c82..00e7213 100644 --- a/crypto/dsa/dsa_key.c +++ b/crypto/dsa/dsa_key.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * DSA 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/dsa/dsa_lib.c b/crypto/dsa/dsa_lib.c index 334ee74..11f0989 100644 --- a/crypto/dsa/dsa_lib.c +++ b/crypto/dsa/dsa_lib.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * DSA 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 "internal/refcount.h" diff --git a/crypto/dsa/dsa_meth.c b/crypto/dsa/dsa_meth.c index 226ea34..0a46002 100644 --- a/crypto/dsa/dsa_meth.c +++ b/crypto/dsa/dsa_meth.c @@ -19,6 +19,7 @@ #include <string.h> #include <openssl/err.h> +#ifndef OPENSSL_NO_DEPRECATED_3_0 DSA_METHOD *DSA_meth_new(const char *name, int flags) { DSA_METHOD *dsam = OPENSSL_zalloc(sizeof(*dsam)); @@ -222,3 +223,4 @@ int DSA_meth_set_keygen(DSA_METHOD *dsam, int (*keygen) (DSA *)) dsam->dsa_keygen = keygen; return 1; } +#endif diff --git a/crypto/dsa/dsa_ossl.c b/crypto/dsa/dsa_ossl.c index 91cb833..6ff22e8 100644 --- a/crypto/dsa/dsa_ossl.c +++ b/crypto/dsa/dsa_ossl.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * DSA 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 "crypto/bn.h" diff --git a/crypto/dsa/dsa_pmeth.c b/crypto/dsa/dsa_pmeth.c index 0ab5372..008a607b 100644 --- a/crypto/dsa/dsa_pmeth.c +++ b/crypto/dsa/dsa_pmeth.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * DSA 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/dsa/dsa_prn.c b/crypto/dsa/dsa_prn.c index 4bc4b0d..65edf63 100644 --- a/crypto/dsa/dsa_prn.c +++ b/crypto/dsa/dsa_prn.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * DSA 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/evp.h> diff --git a/crypto/dsa/dsa_sign.c b/crypto/dsa/dsa_sign.c index d3e8cfa..1ee9272 100644 --- a/crypto/dsa/dsa_sign.c +++ b/crypto/dsa/dsa_sign.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * DSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include <openssl/bn.h> #include "internal/cryptlib.h" #include "dsa_local.h" diff --git a/crypto/dsa/dsa_vrf.c b/crypto/dsa/dsa_vrf.c index cf4412b..329c07a 100644 --- a/crypto/dsa/dsa_vrf.c +++ b/crypto/dsa/dsa_vrf.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * DSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include "internal/cryptlib.h" #include "dsa_local.h" |