mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 04:05:41 +01:00
udp_proxy: don't drop messages in the last flight
Resending the last flight is on the todo-list, but I want to be able to test what's already done now.
This commit is contained in:
parent
b6440a496b
commit
bc010a045c
@ -251,7 +251,7 @@ static const char *msg_type( unsigned char *msg, size_t len )
|
||||
case SSL_HS_CERTIFICATE_VERIFY: return( "CertificateVerify" );
|
||||
case SSL_HS_CLIENT_KEY_EXCHANGE: return( "ClientKeyExchange" );
|
||||
case SSL_HS_FINISHED: return( "Finished" );
|
||||
default: return( "Unkown handshake" );
|
||||
default: return( "Unknown handshake" );
|
||||
}
|
||||
}
|
||||
|
||||
@ -366,6 +366,9 @@ int handle_message( const char *way, int dst, int src )
|
||||
cur.len > (unsigned) opt.mtu ) ||
|
||||
( opt.drop != 0 &&
|
||||
strcmp( cur.type, "ApplicationData" ) != 0 &&
|
||||
strcmp( cur.type, "NewSessionTicket" ) != 0 && // temporary
|
||||
strcmp( cur.type, "ChangeCipherSpec" ) != 0 && // temporary
|
||||
strcmp( cur.type, "Unknown handshake" ) != 0 && // temporary
|
||||
++drop_cnt == opt.drop ) )
|
||||
{
|
||||
drop_cnt = 0;
|
||||
@ -374,6 +377,9 @@ int handle_message( const char *way, int dst, int src )
|
||||
strcmp( cur.type, "ChangeCipherSpec" ) == 0 ) ||
|
||||
( opt.delay != 0 &&
|
||||
strcmp( cur.type, "ApplicationData" ) != 0 &&
|
||||
strcmp( cur.type, "NewSessionTicket" ) != 0 && // temporary
|
||||
strcmp( cur.type, "ChangeCipherSpec" ) != 0 && // temporary
|
||||
strcmp( cur.type, "Unknown handshake" ) != 0 && // temporary
|
||||
++delay_cnt == opt.delay ) )
|
||||
{
|
||||
delay_cnt = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user