Skip to content

Commit

Permalink
Update src/hx/libs/ssl/SSL.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Zeta <[email protected]>
  • Loading branch information
Aidan63 and Apprentice-Alchemist authored Jun 16, 2024
1 parent b1b53da commit be8cdf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hx/libs/ssl/SSL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,8 @@ Dynamic _hx_ssl_key_from_pem( String data, bool pub, String pass ){
}else{
Array<unsigned char> 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 ){
Expand Down

0 comments on commit be8cdf4

Please sign in to comment.