summaryrefslogtreecommitdiffstats
path: root/net/openvpn/patches/100-mbedtls-disable-runtime-version-check.patch
blob: 0b14e94e6aef54404b8acb2228e80d5d61e44495 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/src/openvpn/ssl_mbedtls.c
+++ b/src/openvpn/ssl_mbedtls.c
@@ -1579,11 +1579,7 @@ show_available_curves(void)
 const char *
 get_ssl_library_version(void)
 {
-    static char mbedtls_version[30];
-    unsigned int pv = mbedtls_version_get_number();
-    snprintf(mbedtls_version, sizeof(mbedtls_version), "mbed TLS %d.%d.%d", (pv >> 24) & 0xff,
-             (pv >> 16) & 0xff, (pv >> 8) & 0xff);
-    return mbedtls_version;
+    return "mbed TLS " MBEDTLS_VERSION_STRING;
 }
 
 void