diff options
author | Francis Dupont <fdupont@isc.org> | 2021-04-22 16:19:09 +0200 |
---|---|---|
committer | Tomek Mrugalski <tomek@isc.org> | 2021-05-05 12:12:41 +0200 |
commit | 00cb5231cacf50f4be43e8b82056e04c245a7498 (patch) | |
tree | a9c3c67f1d5d904f04d9552d3fb5be4f35cd23d9 /src/lib/asiolink/tests | |
parent | [#1665] Cleaned up configure warnings (diff) | |
download | kea-00cb5231cacf50f4be43e8b82056e04c245a7498.tar.xz kea-00cb5231cacf50f4be43e8b82056e04c245a7498.zip |
[#1665] Updated UTs for Botan 2.18
Diffstat (limited to 'src/lib/asiolink/tests')
-rw-r--r-- | src/lib/asiolink/tests/tls_unittest.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/lib/asiolink/tests/tls_unittest.cc b/src/lib/asiolink/tests/tls_unittest.cc index f57c4400dc..4e0a00b049 100644 --- a/src/lib/asiolink/tests/tls_unittest.cc +++ b/src/lib/asiolink/tests/tls_unittest.cc @@ -1059,8 +1059,10 @@ TEST(TLSTest, clientHTTPnoS) { timer.cancel(); Expecteds exps; - // Botan server hangs. + // Botan server hangs before 2.18. exps.addTimeout(); + // Botan error. + exps.addError("protocol_version"); // LibreSSL error. exps.addError("tlsv1 alert protocol version"); // OpenSSL error (OpenSSL recognizes HTTP). @@ -1147,8 +1149,9 @@ TEST(TLSTest, unknownClient) { timer.cancel(); Expecteds exps; - // Botan error. + // Botan errors. exps.addError("record_overflow"); + exps.addError("protocol_version"); // LibreSSL error. exps.addError("tlsv1 alert protocol version"); // Old OpenSSL error. @@ -1697,10 +1700,10 @@ TEST(TLSTest, clientHTTPnoSCloseonError) { timer.cancel(); Expecteds exps; - // Botan server still hangs. - // Reading the Botan code it really expects a TLS record and is fooled - // by the input and just want more... To summary it is a little naive. + // Botan server hangs before 2.18. exps.addTimeout(); + // Botan behavior was reported and fixed. + exps.addError("protocol_version"); // LibreSSL error. exps.addError("tlsv1 alert protocol version"); // OpenSSL error (OpenSSL recognizes HTTP). |