session MAINTENANCE unused variables
diff --git a/src/session.c b/src/session.c
index 934c8c4..bb70b30 100644
--- a/src/session.c
+++ b/src/session.c
@@ -1334,13 +1334,13 @@
static void
nc_tls_init(void)
{
- int i;
-
SSL_load_error_strings();
ERR_load_BIO_strings();
SSL_library_init();
#if OPENSSL_VERSION_NUMBER < 0x10100000L // < 1.1.0
+ int i;
+
tls_locks = malloc(CRYPTO_num_locks() * sizeof *tls_locks);
if (!tls_locks) {
ERRMEM;
@@ -1362,8 +1362,6 @@
static void
nc_tls_destroy(void)
{
- int i;
-
FIPS_mode_set(0);
CRYPTO_cleanup_all_ex_data();
nc_thread_destroy();
@@ -1376,6 +1374,8 @@
#endif
#if OPENSSL_VERSION_NUMBER < 0x10100000L // < 1.1.0
+ int i;
+
CRYPTO_THREADID_set_callback(NULL);
CRYPTO_set_locking_callback(NULL);
for (i = 0; i < CRYPTO_num_locks(); ++i) {