diff options
author | Richard Levitte <levitte@openssl.org> | 2019-07-26 18:11:55 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-09-12 18:34:06 +0200 |
commit | e5d4233fbd07eac52227c7ec5f479a46f15914bf (patch) | |
tree | b1721a511174bca38d434ea844baae1187e30d38 /fuzz | |
parent | 14e275e8fb736be4ea83441b630515f7be97d06b (diff) | |
download | openssl-e5d4233fbd07eac52227c7ec5f479a46f15914bf.tar.gz |
Deprecate ERR_get_state()
Internally, we still need this function, so we make it internal and
then add a new ERR_get_state() that simply calls the internal variant,
unless it's "removed" by configuration.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9462)
Diffstat (limited to 'fuzz')
-rw-r--r-- | fuzz/asn1.c | 2 | ||||
-rw-r--r-- | fuzz/asn1parse.c | 2 | ||||
-rw-r--r-- | fuzz/bignum.c | 2 | ||||
-rw-r--r-- | fuzz/bndiv.c | 2 | ||||
-rw-r--r-- | fuzz/client.c | 2 | ||||
-rw-r--r-- | fuzz/cms.c | 2 | ||||
-rw-r--r-- | fuzz/conf.c | 2 | ||||
-rw-r--r-- | fuzz/crl.c | 2 | ||||
-rw-r--r-- | fuzz/ct.c | 2 | ||||
-rw-r--r-- | fuzz/server.c | 2 | ||||
-rw-r--r-- | fuzz/x509.c | 2 |
11 files changed, 11 insertions, 11 deletions
diff --git a/fuzz/asn1.c b/fuzz/asn1.c index 54cd0fcf82..4a5458af3e 100644 --- a/fuzz/asn1.c +++ b/fuzz/asn1.c @@ -283,7 +283,7 @@ int FuzzerInitialize(int *argc, char ***argv) OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS, NULL); - ERR_get_state(); + ERR_clear_error(); CRYPTO_free_ex_index(0, -1); FuzzerSetRand(); diff --git a/fuzz/asn1parse.c b/fuzz/asn1parse.c index 8aab0d2f1c..ac888e535a 100644 --- a/fuzz/asn1parse.c +++ b/fuzz/asn1parse.c @@ -25,7 +25,7 @@ int FuzzerInitialize(int *argc, char ***argv) { bio_out = BIO_new_file("/dev/null", "w"); OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); - ERR_get_state(); + ERR_clear_error(); CRYPTO_free_ex_index(0, -1); return 1; } diff --git a/fuzz/bignum.c b/fuzz/bignum.c index 3de6a89846..d7c3716aac 100644 --- a/fuzz/bignum.c +++ b/fuzz/bignum.c @@ -22,7 +22,7 @@ int FuzzerInitialize(int *argc, char ***argv) { OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); - ERR_get_state(); + ERR_clear_error(); return 1; } diff --git a/fuzz/bndiv.c b/fuzz/bndiv.c index 70636d4fee..d9467b5e8b 100644 --- a/fuzz/bndiv.c +++ b/fuzz/bndiv.c @@ -38,7 +38,7 @@ int FuzzerInitialize(int *argc, char ***argv) ctx = BN_CTX_new(); OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); - ERR_get_state(); + ERR_clear_error(); return 1; } diff --git a/fuzz/client.c b/fuzz/client.c index 5483c6a00b..451989773a 100644 --- a/fuzz/client.c +++ b/fuzz/client.c @@ -44,7 +44,7 @@ int FuzzerInitialize(int *argc, char ***argv) OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS | OPENSSL_INIT_ASYNC, NULL); OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS, NULL); - ERR_get_state(); + ERR_clear_error(); CRYPTO_free_ex_index(0, -1); idx = SSL_get_ex_data_X509_STORE_CTX_idx(); FuzzerSetRand(); diff --git a/fuzz/cms.c b/fuzz/cms.c index 479ce02e03..d464429a54 100644 --- a/fuzz/cms.c +++ b/fuzz/cms.c @@ -20,7 +20,7 @@ int FuzzerInitialize(int *argc, char ***argv) { OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); - ERR_get_state(); + ERR_clear_error(); CRYPTO_free_ex_index(0, -1); return 1; } diff --git a/fuzz/conf.c b/fuzz/conf.c index 0739080f0f..72e4b358fd 100644 --- a/fuzz/conf.c +++ b/fuzz/conf.c @@ -19,7 +19,7 @@ int FuzzerInitialize(int *argc, char ***argv) { OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); - ERR_get_state(); + ERR_clear_error(); return 1; } diff --git a/fuzz/crl.c b/fuzz/crl.c index e174180c9e..9e18dcb94b 100644 --- a/fuzz/crl.c +++ b/fuzz/crl.c @@ -16,7 +16,7 @@ int FuzzerInitialize(int *argc, char ***argv) { OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); - ERR_get_state(); + ERR_clear_error(); CRYPTO_free_ex_index(0, -1); return 1; } @@ -21,7 +21,7 @@ int FuzzerInitialize(int *argc, char ***argv) { OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); CRYPTO_free_ex_index(0, -1); - ERR_get_state(); + ERR_clear_error(); return 1; } diff --git a/fuzz/server.c b/fuzz/server.c index 953da48f5b..335f1f165d 100644 --- a/fuzz/server.c +++ b/fuzz/server.c @@ -491,7 +491,7 @@ int FuzzerInitialize(int *argc, char ***argv) OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS | OPENSSL_INIT_ASYNC, NULL); OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS, NULL); - ERR_get_state(); + ERR_clear_error(); CRYPTO_free_ex_index(0, -1); idx = SSL_get_ex_data_X509_STORE_CTX_idx(); FuzzerSetRand(); diff --git a/fuzz/x509.c b/fuzz/x509.c index 3dbeb236e3..858ad61bbf 100644 --- a/fuzz/x509.c +++ b/fuzz/x509.c @@ -19,7 +19,7 @@ int FuzzerInitialize(int *argc, char ***argv) { OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); - ERR_get_state(); + ERR_clear_error(); CRYPTO_free_ex_index(0, -1); FuzzerSetRand(); return 1; |