mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-13 02:14:40 +08:00
Fixed multiple DN size
This commit is contained in:
parent
df5069cb97
commit
bc3d98469f
@ -753,7 +753,7 @@ static int ssl_write_certificate_request( ssl_context *ssl )
|
|||||||
p += 2;
|
p += 2;
|
||||||
crt = ssl->ca_chain;
|
crt = ssl->ca_chain;
|
||||||
|
|
||||||
total_dn_size = 2;
|
total_dn_size = 0;
|
||||||
while( crt != NULL )
|
while( crt != NULL )
|
||||||
{
|
{
|
||||||
if( p - buf > 4096 )
|
if( p - buf > 4096 )
|
||||||
@ -767,7 +767,7 @@ static int ssl_write_certificate_request( ssl_context *ssl )
|
|||||||
|
|
||||||
SSL_DEBUG_BUF( 3, "requested DN", p, dn_size );
|
SSL_DEBUG_BUF( 3, "requested DN", p, dn_size );
|
||||||
|
|
||||||
total_dn_size += dn_size;
|
total_dn_size += 2 + dn_size;
|
||||||
crt = crt->next;
|
crt = crt->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user