|
Removed
Link Here
|
| 1 |
--- src/ssl.c.orig 2020-04-24 19:24:44 UTC |
| 2 |
+++ src/ssl.c |
| 3 |
@@ -367,11 +367,6 @@ static apr_status_t ssl_init_cleanup(void *data) |
| 4 |
#endif |
| 5 |
free_dh_params(); |
| 6 |
|
| 7 |
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) |
| 8 |
- /* Openssl v1.1+ handles all termination automatically. Do |
| 9 |
- * nothing in this case. |
| 10 |
- */ |
| 11 |
-#else |
| 12 |
/* |
| 13 |
* Try to kill the internals of the SSL library. |
| 14 |
*/ |
| 15 |
@@ -394,7 +389,6 @@ static apr_status_t ssl_init_cleanup(void *data) |
| 16 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
| 17 |
ERR_remove_thread_state(NULL); |
| 18 |
#endif |
| 19 |
-#endif |
| 20 |
|
| 21 |
#ifdef HAVE_KEYLOG_CALLBACK |
| 22 |
if (key_log_file) { |
| 23 |
@@ -764,14 +758,7 @@ TCN_IMPLEMENT_CALL(jint, SSL, initialize)(TCN_STDARGS, |
| 24 |
TCN_FREE_CSTRING(engine); |
| 25 |
return (jint)APR_SUCCESS; |
| 26 |
} |
| 27 |
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) |
| 28 |
- /* Openssl v1.1+ handles all initialisation automatically, apart |
| 29 |
- * from hints as to how we want to use the library. |
| 30 |
- * |
| 31 |
- * We tell openssl we want to include engine support. |
| 32 |
- */ |
| 33 |
- OPENSSL_init_ssl(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL); |
| 34 |
-#else |
| 35 |
+ |
| 36 |
/* We must register the library in full, to ensure our configuration |
| 37 |
* code can successfully test the SSL environment. |
| 38 |
*/ |
| 39 |
@@ -785,6 +772,7 @@ TCN_IMPLEMENT_CALL(jint, SSL, initialize)(TCN_STDARGS, |
| 40 |
#endif |
| 41 |
OPENSSL_load_builtin_modules(); |
| 42 |
|
| 43 |
+#if OPENSSL_VERSION_NUMBER < 0x10100000L |
| 44 |
#if ! (defined(WIN32) || defined(WIN64)) |
| 45 |
err = apr_threadkey_private_create(&thread_exit_key, _ssl_thread_exit, |
| 46 |
tcn_global_pool); |