linux-firmware: bump firmware for Intel Wireless 8260AC to version 31
[openwrt/openwrt.git] / package / network / services / openvpn / patches / 300-mbedtls_dont_use_deprecated_sha256_function.patch
1 --- a/src/openvpn/ssl_mbedtls.c
2 +++ b/src/openvpn/ssl_mbedtls.c
3 @@ -803,7 +803,7 @@ tls_ctx_personalise_random(struct tls_ro
4 {
5 mbedtls_x509_crt *cert = ctx->crt_chain;
6
7 - mbedtls_sha256(cert->tbs.p, cert->tbs.len, sha256_hash, false);
8 + mbedtls_sha256_ret(cert->tbs.p, cert->tbs.len, sha256_hash, false);
9 if (0 != memcmp(old_sha256_hash, sha256_hash, sizeof(sha256_hash)))
10 {
11 mbedtls_ctr_drbg_update(cd_ctx, sha256_hash, 32);