mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
mbedtls: print library version
This commit is contained in:
parent
75b41f4a9d
commit
5a5c31312e
1 changed files with 14 additions and 5 deletions
|
@ -327,10 +327,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
|
||||
|
@ -390,6 +386,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;
|
||||
|
@ -788,7 +787,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
|
||||
|
|
Loading…
Add table
Reference in a new issue