2
0

310-mbedtls-disable-runtime-version-check.patch 406 B

1234567891011
  1. --- a/lib/vtls/mbedtls.c
  2. +++ b/lib/vtls/mbedtls.c
  3. @@ -724,7 +724,7 @@ void Curl_mbedtls_session_free(void *ptr
  4. size_t Curl_mbedtls_version(char *buffer, size_t size)
  5. {
  6. - unsigned int version = mbedtls_version_get_number();
  7. + unsigned int version = MBEDTLS_VERSION_NUMBER;
  8. return snprintf(buffer, size, "mbedTLS/%d.%d.%d", version>>24,
  9. (version>>16)&0xff, (version>>8)&0xff);
  10. }