From 0c4cbc7895d78e6ea42a18859c3fbbad1c9c9ff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 2 Sep 2014 14:47:31 +0200 Subject: [PATCH] Add test for fragmentation + renego with GnuTLS --- tests/ssl-opt.sh | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index a2c13ccc0..5165491d6 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -2006,6 +2006,34 @@ run_test "DTLS reassembly: more fragmentation, nbio (gnutls server)" \ -c "found fragmented DTLS handshake message" \ -C "error" +requires_gnutls +not_with_valgrind +run_test "DTLS reassembly: fragmentation, renego (gnutls server)" \ + "$G_SRV -u --mtu 256" \ + "$P_CLI debug_level=3 dtls=1 renegotiation=1 renegotiate=1" \ + 0 \ + -c "found fragmented DTLS handshake message" \ + -c "client hello, adding renegotiation extension" \ + -c "found renegotiation extension" \ + -c "=> renegotiate" \ + -C "ssl_handshake returned" \ + -C "error" \ + -s "Extra-header:" + +requires_gnutls +not_with_valgrind +run_test "DTLS reassembly: fragmentation, nbio, renego (gnutls server)" \ + "$G_SRV -u --mtu 256" \ + "$P_CLI debug_level=3 nbio=2 dtls=1 renegotiation=1 renegotiate=1" \ + 0 \ + -c "found fragmented DTLS handshake message" \ + -c "client hello, adding renegotiation extension" \ + -c "found renegotiation extension" \ + -c "=> renegotiate" \ + -C "ssl_handshake returned" \ + -C "error" \ + -s "Extra-header:" + not_with_valgrind run_test "DTLS reassembly: no fragmentation (openssl server)" \ "$O_SRV -dtls1 -mtu 2048" \ @@ -2038,8 +2066,6 @@ run_test "DTLS reassembly: fragmentation, nbio (openssl server)" \ -c "found fragmented DTLS handshake message" \ -C "error" -# TODO: fragmentation with renegotiation, openssl + gnutls - # Final report echo "------------------------------------------------------------------------"