Module: kamailio
Branch: 5.7
Commit: 90ea4120c04cb70f858f417309ee4fab71a070e7
URL:
https://github.com/kamailio/kamailio/commit/90ea4120c04cb70f858f417309ee4fa…
Author: S-P Chan <shihping.chan(a)gmail.com>
Committer: Richard Chan <richard(a)treeboxsolutions.com>
Date: 2024-01-09T10:18:55+08:00
tls: fix compilation with OpenSSL <= 1.1.1
(cherry-pick from 7111687e1107261bcdd7a9f8cc90959754c93272)
---
Modified: src/modules/tls/tls_init.c
---
Diff:
https://github.com/kamailio/kamailio/commit/90ea4120c04cb70f858f417309ee4fa…
Patch:
https://github.com/kamailio/kamailio/commit/90ea4120c04cb70f858f417309ee4fa…
---
diff --git a/src/modules/tls/tls_init.c b/src/modules/tls/tls_init.c
index 0bc12d31b4a..872fdb206dc 100644
--- a/src/modules/tls/tls_init.c
+++ b/src/modules/tls/tls_init.c
@@ -769,6 +769,7 @@ int tls_pre_init(void)
* tls mod pre-init function
* - executed before any mod_init()
*/
+#if OPENSSL_VERSION_NUMBER >= 0x030000000L
long tls_h_mod_randctx(void *) {
do {
OSSL_LIB_CTX *osslglobal = NULL;
@@ -806,6 +807,7 @@ long tls_h_mod_randctx(void *) {
return 0L;
}
+#endif
int tls_h_mod_pre_init_f(void)
{