diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2016-02-01 22:37:41 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2016-02-01 22:37:41 +0000 |
commit | 3a2e25bc77bf0b714f95b9570503ca12a5c13b43 (patch) | |
tree | 8cb69dd773285929980012f88b4b8df5c83bed1a /package/network/utils/curl/patches/310-polarssl-disable-runtime-version-check.patch | |
parent | 969ec949a8ec1b19009b0915582b359de2ec1d2a (diff) | |
download | master-31e0f0ae-3a2e25bc77bf0b714f95b9570503ca12a5c13b43.tar.gz master-31e0f0ae-3a2e25bc77bf0b714f95b9570503ca12a5c13b43.tar.bz2 master-31e0f0ae-3a2e25bc77bf0b714f95b9570503ca12a5c13b43.zip |
curl: add support for mbedtls
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 48615
Diffstat (limited to 'package/network/utils/curl/patches/310-polarssl-disable-runtime-version-check.patch')
-rw-r--r-- | package/network/utils/curl/patches/310-polarssl-disable-runtime-version-check.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/network/utils/curl/patches/310-polarssl-disable-runtime-version-check.patch b/package/network/utils/curl/patches/310-polarssl-disable-runtime-version-check.patch index 1b5b63aa69..6f9cf2e998 100644 --- a/package/network/utils/curl/patches/310-polarssl-disable-runtime-version-check.patch +++ b/package/network/utils/curl/patches/310-polarssl-disable-runtime-version-check.patch @@ -9,3 +9,14 @@ return snprintf(buffer, size, "%s/%d.%d.%d", version >= 0x01030A00?"mbedTLS":"PolarSSL", version>>24, (version>>16)&0xff, (version>>8)&0xff); +--- a/lib/vtls/mbedtls.c ++++ b/lib/vtls/mbedtls.c +@@ -686,7 +686,7 @@ void Curl_mbedtls_session_free(void *ptr + + size_t Curl_mbedtls_version(char *buffer, size_t size) + { +- unsigned int version = mbedtls_version_get_number(); ++ unsigned int version = MBEDTLS_VERSION_NUMBER; + return snprintf(buffer, size, "mbedTLS/%d.%d.%d", version>>24, + (version>>16)&0xff, (version>>8)&0xff); + } |