Skip to content

Commit

Permalink
mbedtls: print library version
Browse files Browse the repository at this point in the history
  • Loading branch information
lws-team committed Nov 2, 2023
1 parent e71398c commit 05e08a5
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions lib/core/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

1 comment on commit 05e08a5

@OgreTransporter
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MSVC bug, see: #3001

Please sign in to comment.