diff options
author | Dr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com> | 2022-03-29 21:50:21 +0200 |
---|---|---|
committer | Dr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com> | 2022-05-10 09:47:54 +0200 |
commit | 1c8787d5e0b01bedfc3cbe5eab5b85290221d8c1 (patch) | |
tree | ace8480fe48e2065b921ad9a4583deb63434265f /ssl | |
parent | 11e85b8941cb6f728e37f15502f26e67231db6b6 (diff) | |
download | openssl-new-1c8787d5e0b01bedfc3cbe5eab5b85290221d8c1.tar.gz |
err: get rid of err_free_strings_int()
Even though the function is not part of the public api, it is not
entirely removed, in order to minimize the chance of breakage,
because it is exported from libcrypto. Instead, we keep a dummy
implementation.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17974)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_init.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/ssl/ssl_init.c b/ssl/ssl_init.c index a8bcaa907d..cef57356c5 100644 --- a/ssl/ssl_init.c +++ b/ssl/ssl_init.c @@ -46,7 +46,7 @@ DEFINE_RUN_ONCE_STATIC(ossl_init_ssl_base) } static CRYPTO_ONCE ssl_strings = CRYPTO_ONCE_STATIC_INIT; -static int ssl_strings_inited = 0; + DEFINE_RUN_ONCE_STATIC(ossl_init_load_ssl_strings) { /* @@ -56,7 +56,6 @@ DEFINE_RUN_ONCE_STATIC(ossl_init_load_ssl_strings) #if !defined(OPENSSL_NO_ERR) && !defined(OPENSSL_NO_AUTOERRINIT) OSSL_TRACE(INIT, "ossl_init_load_ssl_strings: ossl_err_load_SSL_strings()\n"); ossl_err_load_SSL_strings(); - ssl_strings_inited = 1; #endif return 1; } @@ -82,17 +81,6 @@ static void ssl_library_stop(void) ssl_comp_free_compression_methods_int(); #endif } - - if (ssl_strings_inited) { - OSSL_TRACE(INIT, "ssl_library_stop: err_free_strings_int()\n"); - /* - * If both crypto and ssl error strings are inited we will end up - * calling err_free_strings_int() twice - but that's ok. The second - * time will be a no-op. It's easier to do that than to try and track - * between the two libraries whether they have both been inited. - */ - err_free_strings_int(); - } } /* |