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.
diff --git a/programs/test/udp_proxy.c b/programs/test/udp_proxy.c
index 48549cf..191bb96 100644
--- a/programs/test/udp_proxy.c
+++ b/programs/test/udp_proxy.c
@@ -251,7 +251,7 @@
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 @@
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 @@
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;