From 863fc12c6ebcc96ed10a7c8896fea033a78fbb5d Mon Sep 17 00:00:00 2001 From: Juraj Somorovsky Date: Sat, 17 Sep 2016 14:44:40 +0200 Subject: New TLS positive and negative tests. TLS message parsing: - CertificateVerify - HelloVerify - ClientHello (with extensions) - ServerHello (with extensions) - NewSessionTicket - Alert TLS message processing: - HelloVerify TLS Policy tests Unit tests with TLS client authentication Added test_throws method that checks the correct exception message. --- src/tests/data/tls/new_session_ticket.vec | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/tests/data/tls/new_session_ticket.vec (limited to 'src/tests/data/tls/new_session_ticket.vec') diff --git a/src/tests/data/tls/new_session_ticket.vec b/src/tests/data/tls/new_session_ticket.vec new file mode 100644 index 000000000..22c03611e --- /dev/null +++ b/src/tests/data/tls/new_session_ticket.vec @@ -0,0 +1,20 @@ +# NewSessionTicket message contains the following fields: +# - lifetime (4 bytes) +# - length (2 bytes) +# - session ticket + +[new_session_ticket] +Buffer = 000000000000 +Exception = + +Buffer = 00000000000100 +Exception = + +Buffer = 0000000000051122334455 +Exception = + +Buffer = 0001 +Exception = Invalid argument Decoding error: Session ticket message too short to be valid + +Buffer = 00010203000500 +Exception = Invalid argument Decoding error: Invalid SessionTicket: Expected 5 bytes remaining, only 1 left \ No newline at end of file -- cgit v1.2.3