summaryrefslogtreecommitdiffstats
path: root/regress/lib/libssl/tlsfuzzer
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2020-06-01 10:46:45 +0000
committertb <tb@openbsd.org>2020-06-01 10:46:45 +0000
commit0970cb57551e0e8df6688f8a475400ea57aba548 (patch)
tree7cfee7289b09217a4e60d1cbca678134bb7288e4 /regress/lib/libssl/tlsfuzzer
parentInstead of sending all data to control mode clients as fast as possible, (diff)
downloadwireguard-openbsd-0970cb57551e0e8df6688f8a475400ea57aba548.tar.xz
wireguard-openbsd-0970cb57551e0e8df6688f8a475400ea57aba548.zip
Enable the test-tls13-zero-length-data.py test, skipping the
three tests that fail due to a BIO_gets() bug.
Diffstat (limited to 'regress/lib/libssl/tlsfuzzer')
-rw-r--r--regress/lib/libssl/tlsfuzzer/tlsfuzzer.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py b/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py
index b97f2d8b4c7..ef037aec9a8 100644
--- a/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py
+++ b/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py
@@ -1,4 +1,4 @@
-# $OpenBSD: tlsfuzzer.py,v 1.4 2020/06/01 08:05:32 tb Exp $
+# $OpenBSD: tlsfuzzer.py,v 1.5 2020/06/01 10:46:45 tb Exp $
#
# Copyright (c) 2020 Theo Buehler <tb@openbsd.org>
#
@@ -79,6 +79,15 @@ tls13_tests = TestGroup("TLSv1.3 tests", [
Test("test-tls13-legacy-version.py"),
Test("test-tls13-nociphers.py"),
Test("test-tls13-record-padding.py"),
+
+ # The skipped tests fail due to a bug in BIO_gets() which masks the retry
+ # signalled from an SSL_read() failure. Testing with httpd(8) shows we're
+ # handling these corner cases correctly since tls13_record_layer.c -r1.47.
+ Test("test-tls13-zero-length-data.py", [
+ "-e", "zero-length app data",
+ "-e", "zero-length app data with large padding",
+ "-e", "zero-length app data with padding",
+ ]),
])
# Tests that take a lot of time (> ~30s on an x280)
@@ -125,13 +134,6 @@ tls13_failing_tests = TestGroup("failing TLSv1.3 tests", [
# Most failing tests expect the CCS right before finished.
# What's up with that?
Test("test-tls13-version-negotiation.py"),
-
- # The following three tests fail due to broken pipe.
- # AssertionError: Unexpected closure from peer:
- # 'zero-length app data'
- # 'zero-length app data with large padding'
- # 'zero-length app data with padding'
- Test("test-tls13-zero-length-data.py"),
])
tls13_slow_failing_tests = TestGroup("slow, failing TLSv1.3 tests", [