mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 10:05:46 +01:00
- Corrected behaviour
This commit is contained in:
parent
fc8c4360b8
commit
2908713af1
@ -184,7 +184,7 @@ void debug_print_crt( const ssl_context *ssl, int level,
|
||||
prefix[maxlen] = '\0';
|
||||
maxlen = sizeof( str ) - 1;
|
||||
|
||||
while( crt != NULL && crt->version != 0 )
|
||||
while( crt != NULL )
|
||||
{
|
||||
char buf[1024];
|
||||
x509parse_cert_info( buf, sizeof( buf ) - 1, prefix, crt );
|
||||
|
@ -488,7 +488,7 @@ static int ssl_write_certificate_request( ssl_context *ssl )
|
||||
p += 2;
|
||||
crt = ssl->ca_chain;
|
||||
|
||||
while( crt != NULL && crt->version != 0 )
|
||||
while( crt != NULL )
|
||||
{
|
||||
if( p - buf > 4096 )
|
||||
break;
|
||||
|
@ -1160,7 +1160,7 @@ int ssl_write_certificate( ssl_context *ssl )
|
||||
i = 7;
|
||||
crt = ssl->own_cert;
|
||||
|
||||
while( crt != NULL && crt->version != 0 )
|
||||
while( crt != NULL )
|
||||
{
|
||||
n = crt->raw.len;
|
||||
if( i + 3 + n > SSL_MAX_CONTENT_LEN )
|
||||
|
Loading…
Reference in New Issue
Block a user