[sr-dev] git:master:365e7e46: tls: info log when libssl is linked static

Daniel-Constantin Mierla miconda at gmail.com
Thu Jun 24 14:24:59 CEST 2021


Module: kamailio
Branch: master
Commit: 365e7e46dfb4f605bafe43b57e37e1ff68077567
URL: https://github.com/kamailio/kamailio/commit/365e7e46dfb4f605bafe43b57e37e1ff68077567

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-06-24T14:24:06+02:00

tls: info log when libssl is linked static

---

Modified: src/modules/tls/Makefile
Modified: src/modules/tls/tls_init.c

---

Diff:  https://github.com/kamailio/kamailio/commit/365e7e46dfb4f605bafe43b57e37e1ff68077567.diff
Patch: https://github.com/kamailio/kamailio/commit/365e7e46dfb4f605bafe43b57e37e1ff68077567.patch

---

diff --git a/src/modules/tls/Makefile b/src/modules/tls/Makefile
index 3b90ec8fd6..32495099c0 100644
--- a/src/modules/tls/Makefile
+++ b/src/modules/tls/Makefile
@@ -39,6 +39,8 @@ endif # ifneq ($(CRYPTO_BUILDER),)
 
 else # $(LIBSSL_STATIC),yes)
 
+	DEFS += -DKSR_LIBSSL_STATIC
+
 ifneq ($(LIBSSL_STATIC_SRCLIB),yes)
 	## when static libs (*.a) from packages are compiled with -fPIC
 	DEFS += $(shell $(SSL_BUILDER) --cflags)
diff --git a/src/modules/tls/tls_init.c b/src/modules/tls/tls_init.c
index b71bbbd28b..4c858bbbd8 100644
--- a/src/modules/tls/tls_init.c
+++ b/src/modules/tls/tls_init.c
@@ -589,6 +589,10 @@ int tls_pre_init(void)
 	void (*ff)(void *, const char *, int) = NULL;
 #endif
 
+#ifdef KSR_LIBSSL_STATIC
+	LM_INFO("libssl linked mode: static\n");
+#endif
+
 	/*
 	 * this has to be called before any function calling CRYPTO_malloc,
 	 * CRYPTO_malloc will set allow_customize in openssl to 0




More information about the sr-dev mailing list