Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mbedtls3 migration #1113

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/hx/libs/ssl/SSL.cpp
Co-authored-by: Zeta <[email protected]>
Aidan63 and Apprentice-Alchemist authored Jun 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit b1b53daca38ac12411d6264c5b779ee104e67710
3 changes: 2 additions & 1 deletion src/hx/libs/ssl/SSL.cpp
Original file line number Diff line number Diff line change
@@ -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);