mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
mbedtls: print library version
This commit is contained in:
parent
e71398c02a
commit
05e08a511a
1 changed files with 14 additions and 5 deletions
|
@ -347,10 +347,6 @@ static const char * const opts_str =
|
||||||
#if defined(LWS_WITH_SECURE_STREAMS_PROXY_API)
|
#if defined(LWS_WITH_SECURE_STREAMS_PROXY_API)
|
||||||
"SSPROX "
|
"SSPROX "
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(LWS_WITH_MBEDTLS)
|
|
||||||
"MbedTLS "
|
|
||||||
#endif
|
|
||||||
#if defined(LWS_WITH_CONMON)
|
#if defined(LWS_WITH_CONMON)
|
||||||
"ConMon "
|
"ConMon "
|
||||||
#endif
|
#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)
|
#if defined(LWS_WITH_CACHE_NSCOOKIEJAR) && defined(LWS_WITH_CLIENT)
|
||||||
struct lws_cache_creation_info ci;
|
struct lws_cache_creation_info ci;
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(LWS_WITH_MBEDTLS)
|
||||||
|
char mbedtls_version[32];
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__ANDROID__)
|
#if defined(__ANDROID__)
|
||||||
struct rlimit rt;
|
struct rlimit rt;
|
||||||
|
@ -809,7 +808,17 @@ lws_create_context(const struct lws_context_creation_info *info)
|
||||||
|
|
||||||
#endif /* network */
|
#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)
|
#if defined(LWS_WITH_NETWORK)
|
||||||
lwsl_cx_info(context, "Event loop: %s", plev->ops->name);
|
lwsl_cx_info(context, "Event loop: %s", plev->ops->name);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue