Skip to content

Commit 9bf4f83

Browse files
Luka Kudralws-team
authored andcommitted
mbedtls: dont rely on potentially missing version api
#3013
1 parent b161491 commit 9bf4f83

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/core/context.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,6 @@ lws_create_context(const struct lws_context_creation_info *info)
406406
#if defined(LWS_WITH_CACHE_NSCOOKIEJAR) && defined(LWS_WITH_CLIENT)
407407
struct lws_cache_creation_info ci;
408408
#endif
409-
#if defined(LWS_WITH_MBEDTLS)
410-
char mbedtls_version[32];
411-
#endif
412409

413410
#if defined(__ANDROID__)
414411
struct rlimit rt;
@@ -809,11 +806,7 @@ lws_create_context(const struct lws_context_creation_info *info)
809806
#endif /* network */
810807

811808
#if defined(LWS_WITH_MBEDTLS)
812-
mbedtls_version_get_string(mbedtls_version);
813-
#endif
814-
815-
#if defined(LWS_WITH_MBEDTLS)
816-
lwsl_cx_notice(context, "LWS: %s, MbedTLS-%s %s%s", library_version, mbedtls_version, opts_str, s);
809+
lwsl_cx_notice(context, "LWS: %s, MbedTLS-%s %s%s", library_version, MBEDTLS_VERSION_STRING, opts_str, s);
817810
#else
818811
lwsl_cx_notice(context, "LWS: %s, %s%s", library_version, opts_str, s);
819812
#endif

0 commit comments

Comments
 (0)