Module: kamailio
Branch: master
Commit: 637d53ff2e02273fe35901a42d021c976467514b
URL:
https://github.com/kamailio/kamailio/commit/637d53ff2e02273fe35901a42d021c9…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2024-09-04T07:37:56Z
tls: improvement to openssl version output and FIPS mode logging
- output numerical openssl version also for openssl 3.x for easier comparison
- change log level for deactivated FIPS mode to DBG, as its rarely used
---
Modified: src/modules/tls/tls_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/637d53ff2e02273fe35901a42d021c9…
Patch:
https://github.com/kamailio/kamailio/commit/637d53ff2e02273fe35901a42d021c9…
---
diff --git a/src/modules/tls/tls_mod.c b/src/modules/tls/tls_mod.c
index 84d9ff33412..b247b336900 100644
--- a/src/modules/tls/tls_mod.c
+++ b/src/modules/tls/tls_mod.c
@@ -494,13 +494,14 @@ static int mod_init(void)
#if OPENSSL_VERSION_NUMBER < 0x030000000L
LM_INFO("compiled with OpenSSL version: %08x\n",
(uint32_t)(OPENSSL_VERSION_NUMBER));
#elif OPENSSL_VERSION_NUMBER >= 0x030000000L
- LM_INFO("compiled with OpenSSL: %s\n", OPENSSL_VERSION_TEXT);
+ LM_INFO("compiled with OpenSSL version: %08x\n",
(uint32_t)(OPENSSL_VERSION_NUMBER));
+ LM_INFO("compile-time OpenSSL library: %s\n", OPENSSL_VERSION_TEXT);
LM_INFO("run-time OpenSSL library: %s\n", OpenSSL_version(OPENSSL_VERSION));
if(EVP_default_properties_is_fips_enabled(NULL) == 1) {
LM_INFO("FIPS mode enabled in OpenSSL library\n");
} else {
- LM_INFO("FIPS mode not enabled in OpenSSL library\n");
+ LM_DBG("FIPS mode not enabled in OpenSSL library\n");
}
#endif