[sr-dev] git:master:8bec45f3: tls: more detailed log message when tls module cannot set libssl memory manager

Daniel-Constantin Mierla miconda at gmail.com
Thu Jul 14 12:35:15 CEST 2016


Module: kamailio
Branch: master
Commit: 8bec45f3d0581747da4b807229b4de64511aa5e2
URL: https://github.com/kamailio/kamailio/commit/8bec45f3d0581747da4b807229b4de64511aa5e2

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-07-14T12:34:58+02:00

tls: more detailed log message when tls module cannot set libssl memory manager

---

Modified: modules/tls/tls_init.c

---

Diff:  https://github.com/kamailio/kamailio/commit/8bec45f3d0581747da4b807229b4de64511aa5e2.diff
Patch: https://github.com/kamailio/kamailio/commit/8bec45f3d0581747da4b807229b4de64511aa5e2.patch

---

diff --git a/modules/tls/tls_init.c b/modules/tls/tls_init.c
index e0bbb0b..118f0ab 100644
--- a/modules/tls/tls_init.c
+++ b/modules/tls/tls_init.c
@@ -488,6 +488,8 @@ int tls_pre_init(void)
 	if (!CRYPTO_set_mem_functions(ser_malloc, ser_realloc, ser_free)) {
 #endif
 		ERR("Unable to set the memory allocation functions\n");
+		ERR("Be sure tls module is loaded before any other module using libssl"
+				" (can be loaded first to be safe)\n");
 		return -1;
 	}
 
@@ -509,7 +511,7 @@ int tls_mod_pre_init_h(void)
 		LM_DBG("already mod pre-initialized\n");
 		return 0;
 	}
-	DBG("============= :preparing tls env for modules initialization\n");
+	DBG("preparing tls env for modules initialization\n");
 	SSL_library_init();
 	SSL_load_error_strings();
 	tls_mod_preinitialized=1;




More information about the sr-dev mailing list