mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-22 05:46:41 +01:00
SSL modules now using x509_crt_parse_der()
Avoid uselessly trying to decode PEM.
This commit is contained in:
parent
b25f81665f
commit
4d2a8eb6ff
2 changed files with 4 additions and 3 deletions
|
|
@ -149,7 +149,8 @@ static int ssl_load_session( ssl_session *session,
|
|||
|
||||
x509_crt_init( session->peer_cert );
|
||||
|
||||
if( ( ret = x509_crt_parse( session->peer_cert, p, cert_len ) ) != 0 )
|
||||
if( ( ret = x509_crt_parse_der( session->peer_cert,
|
||||
p, cert_len ) ) != 0 )
|
||||
{
|
||||
x509_crt_free( session->peer_cert );
|
||||
polarssl_free( session->peer_cert );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue