]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1798] Added short read errors
authorFrancis Dupont <fdupont@isc.org>
Wed, 12 May 2021 09:41:00 +0000 (11:41 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 12 May 2021 09:41:00 +0000 (11:41 +0200)
src/lib/asiolink/tests/tls_unittest.cc

index 4e0a00b049b05409e6853e77dc552fb906e9406f..8533f5ab374239f120b79a3af9d753a452725ae8 100644 (file)
@@ -1539,6 +1539,8 @@ TEST(TLSTest, serverNotConfiguredCloseonError) {
     exps.clear();
     // Botan and some OpenSSL.
     exps.addError("stream truncated");
+    // Alias on old OpenSSL.
+    exps.addError("short read");
     // OpenSSL error.
     exps.addError("sslv3 alert handshake failure");
     exps.checkAsync("client", client_cb);
@@ -1613,6 +1615,8 @@ TEST(TLSTest, clientNotConfiguredCloseonError) {
     Expecteds exps;
     // Botan and some OpenSSL.
     exps.addError("stream truncated");
+    // Alias on old OpenSSL.
+    exps.addError("short read");
     // OpenSSL error.
     exps.addError("tlsv1 alert unknown ca");
     exps.checkAsync("server", server_cb);
@@ -1804,6 +1808,8 @@ TEST(TLSTest, anotherClientCloseonError) {
     exps.clear();
     // Botan and some OpenSSL.
     exps.addError("stream truncated");
+    // Alias on old OpenSSL.
+    exps.addError("short read");
     // LibreSSL and recent OpenSSL do not fail.
     exps.addNoError();
     // Old OpenSSL error.
@@ -1894,6 +1900,8 @@ TEST(TLSTest, selfSignedCloseonError) {
     exps.clear();
     // Botan and some OpenSSL.
     exps.addError("stream truncated");
+    // Alias on old OpenSSL.
+    exps.addError("short read");
     // LibreSSL and recent OpenSSL do not fail.
     exps.addNoError();
     // Old OpenSSL error.