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 <53486764+Apprentice-Alchemist@users.noreply.github.com>
  • Loading branch information
Aidan63 and Apprentice-Alchemist authored Jun 16, 2024
1 parent be8cdf4 commit b4ee945
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 @@ -727,7 +727,8 @@ Dynamic _hx_ssl_key_from_pem( String data, bool pub, String pass ){
if( pub ){
r = mbedtls_pk_parse_public_key( pk->k, b, data.length+1 );
}else if( pass == null() ){
r = mbedtls_pk_parse_key( pk->k, b, data.length+1, NULL, 0, mbedtls_ctr_drbg_random, NULL);
r = mbedtls_pk_parse_key( pk->k, b, data.length+1, NULL, 0, mbedtls_ctr_drbg_random, &ctr_drbg);

}else{
Array<unsigned char> pbytes(0,0);
__hxcpp_bytes_of_string(pbytes,pass);
Expand Down

0 comments on commit b4ee945

Please sign in to comment.