Module: kamailio Branch: master Commit: 7111687e1107261bcdd7a9f8cc90959754c93272 URL: https://github.com/kamailio/kamailio/commit/7111687e1107261bcdd7a9f8cc909597...
Author: S-P Chan shihping.chan@gmail.com Committer: S-P Chan shihping.chan@gmail.com Date: 2024-01-04T21:57:56+08:00
tls: fix compilation with OpenSSL <= 1.1.1
---
Modified: src/modules/tls/tls_init.c
---
Diff: https://github.com/kamailio/kamailio/commit/7111687e1107261bcdd7a9f8cc909597... Patch: https://github.com/kamailio/kamailio/commit/7111687e1107261bcdd7a9f8cc909597...
---
diff --git a/src/modules/tls/tls_init.c b/src/modules/tls/tls_init.c index ec62cf7669e..acf1c1456f8 100644 --- a/src/modules/tls/tls_init.c +++ b/src/modules/tls/tls_init.c @@ -771,6 +771,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; @@ -808,6 +809,7 @@ long tls_h_mod_randctx(void *) {
return 0L; } +#endif
int tls_h_mod_pre_init_f(void) {