From: Francis Dupont Date: Wed, 12 May 2021 09:41:00 +0000 (+0200) Subject: [#1798] Added short read errors X-Git-Tag: Kea-1.9.8~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6845014d06238087870e063cacff6f49c19b184;p=thirdparty%2Fkea.git [#1798] Added short read errors --- diff --git a/src/lib/asiolink/tests/tls_unittest.cc b/src/lib/asiolink/tests/tls_unittest.cc index 4e0a00b049..8533f5ab37 100644 --- a/src/lib/asiolink/tests/tls_unittest.cc +++ b/src/lib/asiolink/tests/tls_unittest.cc @@ -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.