aboutsummaryrefslogtreecommitdiffstats
path: root/community/thrift/skip-old-tls-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/thrift/skip-old-tls-tests.patch')
-rw-r--r--community/thrift/skip-old-tls-tests.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/thrift/skip-old-tls-tests.patch b/community/thrift/skip-old-tls-tests.patch
new file mode 100644
index 00000000000..c638a584126
--- /dev/null
+++ b/community/thrift/skip-old-tls-tests.patch
@@ -0,0 +1,41 @@
+Skip TLSv1_0 and TLSv1_1 test cases
+--- a/lib/cpp/test/SecurityFromBufferTest.cpp
++++ b/lib/cpp/test/SecurityFromBufferTest.cpp
+@@ -224,6 +224,16 @@ BOOST_AUTO_TEST_CASE(ssl_security_matrix) {
+ }
+ #endif
+
++ if (si == 3 || ci == 3) {
++ // Skip all TLSv1_0 cases - protocol not supported
++ continue;
++ }
++
++ if (si == 4 || ci == 4) {
++ // Skip all TLSv1_1 cases - protocol not supported
++ continue;
++ }
++
+ boost::mutex::scoped_lock lock(mMutex);
+
+ BOOST_TEST_MESSAGE(boost::format("TEST: Server = %1%, Client = %2%") % protocol2str(si)
+--- a/lib/cpp/test/SecurityTest.cpp
++++ b/lib/cpp/test/SecurityTest.cpp
+@@ -250,6 +250,18 @@ BOOST_AUTO_TEST_CASE(ssl_security_matrix)
+ }
+ #endif
+
++ if (si == 3 || ci == 3)
++ {
++ // Skip all TLSv1_0 cases - protocol not supported
++ continue;
++ }
++
++ if (si == 4 || ci == 4)
++ {
++ // Skip all TLSv1_1 cases - protocol not supported
++ continue;
++ }
++
+ boost::mutex::scoped_lock lock(mMutex);
+
+ BOOST_TEST_MESSAGE(boost::format("TEST: Server = %1%, Client = %2%")