mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-10 07:25:32 +00:00
ssl_write_certificate_request() can handle empty ca_chain
(cherry picked from commit 21360ca4d4
)
Conflicts:
library/ssl_srv.c
This commit is contained in:
parent
8199a3375f
commit
3f5b753654
|
@ -10,6 +10,7 @@ Bugfix
|
|||
instead of the x509parse_crt() wrapper that can also parse PEM
|
||||
certificates
|
||||
* Fixed values for 2-key Triple DES in cipher layer
|
||||
* ssl_write_certificate_request() can handle empty ca_chain
|
||||
|
||||
Security
|
||||
* A possible DoS during the SSL Handshake, due to faulty parsing of
|
||||
|
|
|
@ -505,7 +505,7 @@ static int ssl_write_certificate_request( ssl_context *ssl )
|
|||
p += 2;
|
||||
crt = ssl->ca_chain;
|
||||
|
||||
while( crt != NULL )
|
||||
while( crt != NULL && crt->version != 0)
|
||||
{
|
||||
if( p - buf > 4096 )
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue