|
@@ -627,7 +627,13 @@ int tls_mod_pre_init_h(void)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
LM_DBG("preparing tls env for modules initialization\n");
|
|
LM_DBG("preparing tls env for modules initialization\n");
|
|
|
|
+#if OPENSSL_VERSION_NUMBER >= 0x010100000L && !defined(LIBRESSL_VERSION_NUMBER)
|
|
|
|
+ LM_DBG("preparing tls env for modules initialization (libssl >=1.1)\n");
|
|
|
|
+ OPENSSL_init_ssl(0, NULL);
|
|
|
|
+#else
|
|
|
|
+ LM_DBG("preparing tls env for modules initialization (libssl <=1.0)\n");
|
|
SSL_library_init();
|
|
SSL_library_init();
|
|
|
|
+#endif
|
|
SSL_load_error_strings();
|
|
SSL_load_error_strings();
|
|
tls_mod_preinitialized=1;
|
|
tls_mod_preinitialized=1;
|
|
return 0;
|
|
return 0;
|