Module: kamailio
Branch: master
Commit: 82f5fcbf88ee3058bd9da520b528c86393cc422a
URL:
https://github.com/kamailio/kamailio/commit/82f5fcbf88ee3058bd9da520b528c86…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2023-06-22T18:03:46+02:00
tls: fix build for openssl < 1.1.1
OPENSSL_INIT_ATFORK was introduced in libssl 1.1.1
error introduced at 9d6bfb96528c49e6aaa39aa47be877ca528c3537
---
Modified: src/modules/tls/tls_init.c
---
Diff:
https://github.com/kamailio/kamailio/commit/82f5fcbf88ee3058bd9da520b528c86…
Patch:
https://github.com/kamailio/kamailio/commit/82f5fcbf88ee3058bd9da520b528c86…
---
diff --git a/src/modules/tls/tls_init.c b/src/modules/tls/tls_init.c
index 1919b611f81..d7399e8c792 100644
--- a/src/modules/tls/tls_init.c
+++ b/src/modules/tls/tls_init.c
@@ -749,7 +749,11 @@ int tls_h_mod_pre_init_f(void)
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");
+#if OPENSSL_VERSION_NUMBER >= 0x010101000L
OPENSSL_init_ssl(OPENSSL_INIT_ATFORK, NULL);
+#else
+ OPENSSL_init_ssl(0, NULL);
+#endif
#else
LM_DBG("preparing tls env for modules initialization (libssl <=1.0)\n");
SSL_library_init();