aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2023-11-02 08:06:50 +0000
committerAndy Green <andy@warmcat.com>2023-11-02 08:07:58 +0000
commit05e08a511add353f1b81d4548fcf1cb2e4ee39ce (patch)
treee904deb83074dcf5daec31d668f59a3c6e7e4c9b
parente71398c02ac2db15e28f38367491af8600867bca (diff)
downloadlibwebsockets-05e08a511add353f1b81d4548fcf1cb2e4ee39ce.tar.gz
mbedtls: print library version
-rw-r--r--lib/core/context.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/lib/core/context.c b/lib/core/context.c
index dc0e5933..3bee0de9 100644
--- a/lib/core/context.c
+++ b/lib/core/context.c
@@ -347,10 +347,6 @@ static const char * const opts_str =
#if defined(LWS_WITH_SECURE_STREAMS_PROXY_API)
"SSPROX "
#endif
-
-#if defined(LWS_WITH_MBEDTLS)
- "MbedTLS "
-#endif
#if defined(LWS_WITH_CONMON)
"ConMon "
#endif
@@ -410,6 +406,9 @@ lws_create_context(const struct lws_context_creation_info *info)
#if defined(LWS_WITH_CACHE_NSCOOKIEJAR) && defined(LWS_WITH_CLIENT)
struct lws_cache_creation_info ci;
#endif
+#if defined(LWS_WITH_MBEDTLS)
+ char mbedtls_version[32];
+#endif
#if defined(__ANDROID__)
struct rlimit rt;
@@ -809,7 +808,17 @@ lws_create_context(const struct lws_context_creation_info *info)
#endif /* network */
- lwsl_cx_notice(context, "LWS: %s, %s%s", library_version, opts_str, s);
+#if defined(LWS_WITH_MBEDTLS)
+ mbedtls_version_get_string(mbedtls_version);
+#endif
+
+ lwsl_cx_notice(context,
+#if defined(LWS_WITH_MBEDTLS)
+ "LWS: %s, MbedTLS-%s %s%s", library_version, mbedtls_version, opts_str, s);
+#else
+ "LWS: %s, %s%s", library_version, opts_str, s);
+#endif
+
#if defined(LWS_WITH_NETWORK)
lwsl_cx_info(context, "Event loop: %s", plev->ops->name);
#endif