From 9bf4f8351535122f55345408294ff7c5c613a09b Mon Sep 17 00:00:00 2001 From: Luka Kudra Date: Tue, 21 Nov 2023 17:07:29 +0000 Subject: [PATCH] mbedtls: dont rely on potentially missing version api https://github.com/warmcat/libwebsockets/issues/3013 --- lib/core/context.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/core/context.c b/lib/core/context.c index 8a27d19df..928717d49 100644 --- a/lib/core/context.c +++ b/lib/core/context.c @@ -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; @@ -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