summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-11-05 17:28:50 +0100
committerRichard Levitte <levitte@openssl.org>2019-11-07 11:37:25 +0100
commit936c2b9e933eacae80d3489e5f7316589f3e9a07 (patch)
treebcc8e013817b791df5b290c5ec1892e93969b5fc
parenta6a4d0acd23b3fc85041d9096b67bcf18ccb635c (diff)
Update source files for deprecation at 3.0
Previous macros suggested that from 3.0, we're only allowed to deprecate things at a major version. However, there's no policy stating this, but there is for removal, saying that to remove something, it must have been deprecated for 5 years, and that removal can only happen at a major version. Meanwhile, the semantic versioning rule is that deprecation should trigger a MINOR version update, which is reflected in the macro names as of this change. Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10364)
-rw-r--r--apps/enc.c2
-rw-r--r--apps/speed.c8
-rw-r--r--crypto/aes/aes_ige.c2
-rw-r--r--crypto/asn1/asn1_item_list.h4
-rw-r--r--crypto/asn1/x_long.c2
-rw-r--r--crypto/bn/bn_prime.c2
-rw-r--r--crypto/conf/conf_def.c6
-rw-r--r--crypto/conf/conf_def.h2
-rw-r--r--crypto/conf/keysets.pl2
-rw-r--r--crypto/dsa/dsa_sign.c2
-rw-r--r--crypto/ec/ec_lib.c8
-rw-r--r--crypto/ec/ec_oct.c2
-rw-r--r--crypto/ec/ecdh_kdf.c2
-rw-r--r--crypto/err/err.c10
-rw-r--r--crypto/mem_dbg.c2
-rw-r--r--engines/e_afalg_err.h2
-rw-r--r--engines/e_capi_err.h2
-rw-r--r--engines/e_dasync_err.h2
-rw-r--r--engines/e_ossltest_err.h2
-rw-r--r--fuzz/asn1.c4
-rw-r--r--include/crypto/sm2err.h2
-rw-r--r--include/internal/dsoerr.h2
-rw-r--r--include/internal/propertyerr.h2
-rw-r--r--include/openssl/aes.h4
-rw-r--r--include/openssl/asn1.h2
-rw-r--r--include/openssl/asn1err.h4
-rw-r--r--include/openssl/asn1t.h4
-rw-r--r--include/openssl/async.h2
-rw-r--r--include/openssl/asyncerr.h4
-rw-r--r--include/openssl/bio.h4
-rw-r--r--include/openssl/bioerr.h4
-rw-r--r--include/openssl/blowfish.h2
-rw-r--r--include/openssl/bn.h8
-rw-r--r--include/openssl/bnerr.h4
-rw-r--r--include/openssl/buffer.h4
-rw-r--r--include/openssl/buffererr.h4
-rw-r--r--include/openssl/camellia.h2
-rw-r--r--include/openssl/cast.h2
-rw-r--r--include/openssl/cmac.h2
-rw-r--r--include/openssl/cmperr.h2
-rw-r--r--include/openssl/cms.h2
-rw-r--r--include/openssl/cmserr.h4
-rw-r--r--include/openssl/comp.h2
-rw-r--r--include/openssl/comperr.h4
-rw-r--r--include/openssl/conf.h4
-rw-r--r--include/openssl/conf_api.h2
-rw-r--r--include/openssl/conferr.h4
-rw-r--r--include/openssl/crmferr.h2
-rw-r--r--include/openssl/crypto.h10
-rw-r--r--include/openssl/cryptoerr.h4
-rw-r--r--include/openssl/ct.h2
-rw-r--r--include/openssl/cterr.h4
-rw-r--r--include/openssl/des.h2
-rw-r--r--include/openssl/dh.h2
-rw-r--r--include/openssl/dherr.h4
-rw-r--r--include/openssl/dsa.h6
-rw-r--r--include/openssl/dsaerr.h4
-rw-r--r--include/openssl/dtls1.h4
-rw-r--r--include/openssl/e_os2.h2
-rw-r--r--include/openssl/ebcdic.h2
-rw-r--r--include/openssl/ec.h32
-rw-r--r--include/openssl/ecerr.h4
-rw-r--r--include/openssl/engineerr.h4
-rw-r--r--include/openssl/err.h22
-rw-r--r--include/openssl/esserr.h2
-rw-r--r--include/openssl/evp.h2
-rw-r--r--include/openssl/evperr.h4
-rw-r--r--include/openssl/hmac.h4
-rw-r--r--include/openssl/idea.h2
-rw-r--r--include/openssl/kdf.h2
-rw-r--r--include/openssl/lhash.h2
-rw-r--r--include/openssl/md2.h2
-rw-r--r--include/openssl/md4.h2
-rw-r--r--include/openssl/md5.h2
-rw-r--r--include/openssl/mdc2.h2
-rw-r--r--include/openssl/modes.h2
-rw-r--r--include/openssl/objects.h2
-rw-r--r--include/openssl/objectserr.h4
-rw-r--r--include/openssl/ocsp.h2
-rw-r--r--include/openssl/ocsperr.h4
-rw-r--r--include/openssl/pem.h2
-rw-r--r--include/openssl/pem2.h2
-rw-r--r--include/openssl/pemerr.h4
-rw-r--r--include/openssl/pkcs12.h2
-rw-r--r--include/openssl/pkcs12err.h4
-rw-r--r--include/openssl/pkcs7.h2
-rw-r--r--include/openssl/pkcs7err.h4
-rw-r--r--include/openssl/rand.h2
-rw-r--r--include/openssl/rand_drbg.h4
-rw-r--r--include/openssl/randerr.h4
-rw-r--r--include/openssl/rc2.h2
-rw-r--r--include/openssl/rc4.h2
-rw-r--r--include/openssl/rc5.h2
-rw-r--r--include/openssl/ripemd.h2
-rw-r--r--include/openssl/rsa.h2
-rw-r--r--include/openssl/rsaerr.h4
-rw-r--r--include/openssl/safestack.h2
-rw-r--r--include/openssl/seed.h2
-rw-r--r--include/openssl/sha.h2
-rw-r--r--include/openssl/srp.h2
-rw-r--r--include/openssl/srtp.h2
-rw-r--r--include/openssl/ssl.h8
-rw-r--r--include/openssl/ssl2.h2
-rw-r--r--include/openssl/ssl3.h2
-rw-r--r--include/openssl/sslerr.h4
-rw-r--r--include/openssl/stack.h2
-rw-r--r--include/openssl/store.h2
-rw-r--r--include/openssl/storeerr.h4
-rw-r--r--include/openssl/symhacks.h2
-rw-r--r--include/openssl/tls1.h4
-rw-r--r--include/openssl/ts.h4
-rw-r--r--include/openssl/tserr.h4
-rw-r--r--include/openssl/txt_db.h2
-rw-r--r--include/openssl/ui.h2
-rw-r--r--include/openssl/uierr.h4
-rw-r--r--include/openssl/whrlpool.h2
-rw-r--r--include/openssl/x509.h2
-rw-r--r--include/openssl/x509_vfy.h4
-rw-r--r--include/openssl/x509err.h4
-rw-r--r--include/openssl/x509v3.h2
-rw-r--r--include/openssl/x509v3err.h4
-rw-r--r--providers/common/include/prov/providercommonerr.h2
-rw-r--r--test/asn1_decode_test.c4
-rw-r--r--test/asn1_encode_test.c6
-rw-r--r--test/igetest.c4
-rw-r--r--util/libcrypto.num56
-rw-r--r--util/libssl.num2
-rwxr-xr-xutil/mkerr.pl2
128 files changed, 249 insertions, 249 deletions
diff --git a/apps/enc.c b/apps/enc.c
index 611d0536bc..243cc1280c 100644
--- a/apps/enc.c
+++ b/apps/enc.c
@@ -51,7 +51,7 @@ typedef enum OPTION_choice {
const OPTIONS enc_options[] = {
{"help", OPT_HELP, '-', "Display this summary"},
{"list", OPT_LIST, '-', "List ciphers"},
-#if !OPENSSL_API_3
+#ifndef OPENSSL_NO_DEPRECATED_3_0
{"ciphers", OPT_LIST, '-', "Alias for -list"},
#endif
{"in", OPT_IN, '<', "Input file"},
diff --git a/apps/speed.c b/apps/speed.c
index 7117c6f068..75d3149ae0 100644
--- a/apps/speed.c
+++ b/apps/speed.c
@@ -169,7 +169,7 @@ static int DES_ede3_cbc_encrypt_loop(void *args);
static int AES_cbc_128_encrypt_loop(void *args);
static int AES_cbc_192_encrypt_loop(void *args);
static int AES_cbc_256_encrypt_loop(void *args);
-#if !OPENSSL_API_3
+#ifndef OPENSSL_NO_DEPRECATED_3_0
static int AES_ige_128_encrypt_loop(void *args);
static int AES_ige_192_encrypt_loop(void *args);
static int AES_ige_256_encrypt_loop(void *args);
@@ -436,7 +436,7 @@ static const OPT_PAIR doit_choices[] = {
{"aes-128-cbc", D_CBC_128_AES},
{"aes-192-cbc", D_CBC_192_AES},
{"aes-256-cbc", D_CBC_256_AES},
-#if !OPENSSL_API_3
+#ifndef OPENSSL_NO_DEPRECATED_3_0
{"aes-128-ige", D_IGE_128_AES},
{"aes-192-ige", D_IGE_192_AES},
{"aes-256-ige", D_IGE_256_AES},
@@ -896,7 +896,7 @@ static int AES_cbc_256_encrypt_loop(void *args)
return count;
}
-#if !OPENSSL_API_3
+#ifndef OPENSSL_NO_DEPRECATED_3_0
static int AES_ige_128_encrypt_loop(void *args)
{
loopargs_t *tempargs = *(loopargs_t **) args;
@@ -2565,7 +2565,7 @@ int speed_main(int argc, char **argv)
}
}
-#if !OPENSSL_API_3
+#ifndef OPENSSL_NO_DEPRECATED_3_0
if (doit[D_IGE_128_AES]) {
for (testnum = 0; testnum < size_num; testnum++) {
print_message(names[D_IGE_128_AES], c[D_IGE_128_AES][testnum],
diff --git a/crypto/aes/aes_ige.c b/crypto/aes/aes_ige.c
index b95d3d4ba6..3300e518d2 100644
--- a/