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 fbf3eb0 commit b1b53da
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 @@ -704,7 +704,8 @@ Dynamic _hx_ssl_key_from_der( Array<unsigned char> buf, bool pub ){
if( pub )
r = mbedtls_pk_parse_public_key( pk->k, &buf[0], buf->length );
else
r = mbedtls_pk_parse_key( pk->k, &buf[0], buf->length, NULL, 0, mbedtls_ctr_drbg_random, NULL);
r = mbedtls_pk_parse_key( pk->k, &buf[0], buf->length, NULL, 0, mbedtls_ctr_drbg_random, &ctr_drbg);

if( r != 0 ){
pk->destroy();
ssl_error(r);
Expand Down

0 comments on commit b1b53da

Please sign in to comment.