Skip to content

Commit

Permalink
mbedtls: dont rely on potentially missing version api
Browse files Browse the repository at this point in the history
  • Loading branch information
Luka Kudra authored and lws-team committed Nov 21, 2023
1 parent b161491 commit 9bf4f83
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/core/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,6 @@ 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,11 +806,7 @@ lws_create_context(const struct lws_context_creation_info *info)
#endif /* network */

#if defined(LWS_WITH_MBEDTLS)
mbedtls_version_get_string(mbedtls_version);
#endif

#if defined(LWS_WITH_MBEDTLS)
lwsl_cx_notice(context, "LWS: %s, MbedTLS-%s %s%s", library_version, mbedtls_version, opts_str, s);
lwsl_cx_notice(context, "LWS: %s, MbedTLS-%s %s%s", library_version, MBEDTLS_VERSION_STRING, opts_str, s);
#else
lwsl_cx_notice(context, "LWS: %s, %s%s", library_version, opts_str, s);
#endif
Expand Down

0 comments on commit 9bf4f83

Please sign in to comment.