aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/network/utils/curl/patches/320-mbedtls_dont_use_deprecated_sha256_function.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/network/utils/curl/patches/320-mbedtls_dont_use_deprecated_sha256_function.patch b/package/network/utils/curl/patches/320-mbedtls_dont_use_deprecated_sha256_function.patch
new file mode 100644
index 0000000000..5c4c18c2a4
--- /dev/null
+++ b/package/network/utils/curl/patches/320-mbedtls_dont_use_deprecated_sha256_function.patch
@@ -0,0 +1,11 @@
+--- a/lib/vtls/mbedtls.c
++++ b/lib/vtls/mbedtls.c
+@@ -1029,7 +1029,7 @@ static void Curl_mbedtls_sha256sum(const
+ size_t sha256len UNUSED_PARAM)
+ {
+ (void)sha256len;
+- mbedtls_sha256(input, inputlen, sha256sum, 0);
++ mbedtls_sha256_ret(input, inputlen, sha256sum, 0);
+ }
+
+ static void *Curl_mbedtls_get_internals(struct ssl_connect_data *connssl,