You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
485 B
Diff
12 lines
485 B
Diff
--- a/src/openvpn/ssl_mbedtls.c
|
|
+++ b/src/openvpn/ssl_mbedtls.c
|
|
@@ -803,7 +803,7 @@ tls_ctx_personalise_random(struct tls_ro
|
|
{
|
|
mbedtls_x509_crt *cert = ctx->crt_chain;
|
|
|
|
- mbedtls_sha256(cert->tbs.p, cert->tbs.len, sha256_hash, false);
|
|
+ mbedtls_sha256_ret(cert->tbs.p, cert->tbs.len, sha256_hash, false);
|
|
if (0 != memcmp(old_sha256_hash, sha256_hash, sizeof(sha256_hash)))
|
|
{
|
|
mbedtls_ctr_drbg_update(cd_ctx, sha256_hash, 32);
|