87b6492a97607afef2f37aead565d689d5781b56
[openwrt/openwrt.git] / package / network / utils / curl / patches / 310-mbedtls-disable-runtime-version-check.patch
1 --- a/lib/vtls/mbedtls.c
2 +++ b/lib/vtls/mbedtls.c
3 @@ -811,7 +811,7 @@ static void Curl_mbedtls_session_free(vo
4
5 static size_t Curl_mbedtls_version(char *buffer, size_t size)
6 {
7 - unsigned int version = mbedtls_version_get_number();
8 + unsigned int version = MBEDTLS_VERSION_NUMBER;
9 return msnprintf(buffer, size, "mbedTLS/%u.%u.%u", version>>24,
10 (version>>16)&0xff, (version>>8)&0xff);
11 }