commit | 4d2a8eb6ffcebcabff63b61d488b9ba3e79e7f6f | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Fri Jun 13 20:33:27 2014 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Mon Jun 23 11:54:57 2014 +0200 |
tree | 0479481813e464637a8acd718c5a7bb45407a950 | |
parent | b25f81665fea4d53145ba8f6a015bccfdb44324f [diff] [blame] |
SSL modules now using x509_crt_parse_der() Avoid uselessly trying to decode PEM.
diff --git a/library/ssl_srv.c b/library/ssl_srv.c index dfa7e48..7a5f462 100644 --- a/library/ssl_srv.c +++ b/library/ssl_srv.c
@@ -149,7 +149,8 @@ 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 );