From be8cdf475c522375c19ce64a926c1e2b1f9d4f37 Mon Sep 17 00:00:00 2001 From: Aidan Lee Date: Sun, 16 Jun 2024 11:02:05 +0100 Subject: [PATCH] Update src/hx/libs/ssl/SSL.cpp Co-authored-by: Zeta <53486764+Apprentice-Alchemist@users.noreply.github.com> --- src/hx/libs/ssl/SSL.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hx/libs/ssl/SSL.cpp b/src/hx/libs/ssl/SSL.cpp index 9db6f86ae..b4534fdf5 100644 --- a/src/hx/libs/ssl/SSL.cpp +++ b/src/hx/libs/ssl/SSL.cpp @@ -731,7 +731,8 @@ Dynamic _hx_ssl_key_from_pem( String data, bool pub, String pass ){ }else{ Array pbytes(0,0); __hxcpp_bytes_of_string(pbytes,pass); - r = mbedtls_pk_parse_key( pk->k, b, data.length+1, (const unsigned char *)pbytes->GetBase(), pbytes->length, mbedtls_ctr_drbg_random, NULL); + r = mbedtls_pk_parse_key( pk->k, b, data.length+1, (const unsigned char *)pbytes->GetBase(), pbytes->length, mbedtls_ctr_drbg_random, &ctr_drbg); + } free(b); if( r != 0 ){