Module: kamailio
Branch: 5.7
Commit: d4b7333ca126ae7c77ec8f095f8728234d0dfe43
URL:
https://github.com/kamailio/kamailio/commit/d4b7333ca126ae7c77ec8f095f87282…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2023-06-21T12:10:46+02:00
tls: disable engine for openssl >= 3.0
From
https://www.openssl.org/docs/man3.0/man7/migration_guide.html
The refactoring to support Providers conflicts
internally with the APIs
used to support engines, including the ENGINE API and any function that
creates or modifies custom "METHODS"
From
https://www.openssl.org/docs/man3.0/man3/ENGINE_init.html:
All of the functions described on this page are
deprecated. Applications
should instead use the provider APIs.
(cherry picked from commit a0a9373ccb3d3da3a1e9e1335d904fcf013d9ebd)
---
Modified: src/modules/tls/tls_domain.c
Modified: src/modules/tls/tls_mod.c
Modified: src/modules/tls/tls_server.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d4b7333ca126ae7c77ec8f095f87282…
Patch:
https://github.com/kamailio/kamailio/commit/d4b7333ca126ae7c77ec8f095f87282…
---
diff --git a/src/modules/tls/tls_domain.c b/src/modules/tls/tls_domain.c
index d718c92893..ad6e08bffa 100644
--- a/src/modules/tls/tls_domain.c
+++ b/src/modules/tls/tls_domain.c
@@ -30,6 +30,10 @@
#include <openssl/bn.h>
#include <openssl/dh.h>
+#if OPENSSL_VERSION_NUMBER >= 0x030000000L
+#define OPENSSL_NO_ENGINE
+#endif
+
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#include "tls_map.h"
diff --git a/src/modules/tls/tls_mod.c b/src/modules/tls/tls_mod.c
index 22be7688d1..a0f90c1106 100644
--- a/src/modules/tls/tls_mod.c
+++ b/src/modules/tls/tls_mod.c
@@ -87,6 +87,9 @@ int ksr_rand_engine_param(modparam_t type, void* val);
MODULE_VERSION
+#if OPENSSL_VERSION_NUMBER >= 0x030000000L
+#define OPENSSL_NO_ENGINE
+#endif
extern str sr_tls_event_callback;
str sr_tls_xavp_cfg = {0, 0};
diff --git a/src/modules/tls/tls_server.c b/src/modules/tls/tls_server.c
index afd16ab542..5c039c920b 100644
--- a/src/modules/tls/tls_server.c
+++ b/src/modules/tls/tls_server.c
@@ -128,6 +128,9 @@ int tls_run_event_routes(struct tcp_connection *c);
#endif /* __SUNPRO_c */
#endif /* TLS_RD_DEBUG */
+#if OPENSSL_VERSION_NUMBER >= 0x030000000L
+#define OPENSSL_NO_ENGINE
+#endif
extern str sr_tls_xavp_cfg;