diff options
Diffstat (limited to 'meta-oe/recipes-connectivity/thrift/thrift-0.9.3/0006-THRIFT-3736-C++-library-build-fails-if-OpenSSL-does-.patch')
-rw-r--r-- | meta-oe/recipes-connectivity/thrift/thrift-0.9.3/0006-THRIFT-3736-C++-library-build-fails-if-OpenSSL-does-.patch | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/meta-oe/recipes-connectivity/thrift/thrift-0.9.3/0006-THRIFT-3736-C++-library-build-fails-if-OpenSSL-does-.patch b/meta-oe/recipes-connectivity/thrift/thrift-0.9.3/0006-THRIFT-3736-C++-library-build-fails-if-OpenSSL-does-.patch index 9c18171f1e..dfaa2fbda8 100644 --- a/meta-oe/recipes-connectivity/thrift/thrift-0.9.3/0006-THRIFT-3736-C++-library-build-fails-if-OpenSSL-does-.patch +++ b/meta-oe/recipes-connectivity/thrift/thrift-0.9.3/0006-THRIFT-3736-C++-library-build-fails-if-OpenSSL-does-.patch | |||
@@ -1,7 +1,8 @@ | |||
1 | From 53dc6e255bec2e4cd8bae85d14bec1cf28310d3f Mon Sep 17 00:00:00 2001 | 1 | From 4cd49f470ca983369451d1141acc80fe1115cab4 Mon Sep 17 00:00:00 2001 |
2 | From: Nobuaki Sukegawa <nsuke@apache.org> | 2 | From: Nobuaki Sukegawa <nsuke@apache.org> |
3 | Date: Sun, 13 Mar 2016 08:55:38 +0900 | 3 | Date: Sun, 13 Mar 2016 08:55:38 +0900 |
4 | Subject: [PATCH] THRIFT-3736 C++ library build fails if OpenSSL does not | 4 | Subject: [PATCH] THRIFT-3736 C++ library build fails if OpenSSL does not |
5 | |||
5 | surrpot SSLv3 | 6 | surrpot SSLv3 |
6 | 7 | ||
7 | --- | 8 | --- |
@@ -10,10 +11,10 @@ Subject: [PATCH] THRIFT-3736 C++ library build fails if OpenSSL does not | |||
10 | 2 files changed, 10 insertions(+) | 11 | 2 files changed, 10 insertions(+) |
11 | 12 | ||
12 | diff --git a/lib/cpp/src/thrift/transport/TSSLSocket.cpp b/lib/cpp/src/thrift/transport/TSSLSocket.cpp | 13 | diff --git a/lib/cpp/src/thrift/transport/TSSLSocket.cpp b/lib/cpp/src/thrift/transport/TSSLSocket.cpp |
13 | index bd13160260..517151f714 100644 | 14 | index 0a3a124..3e79354 100644 |
14 | --- a/lib/cpp/src/thrift/transport/TSSLSocket.cpp | 15 | --- a/lib/cpp/src/thrift/transport/TSSLSocket.cpp |
15 | +++ b/lib/cpp/src/thrift/transport/TSSLSocket.cpp | 16 | +++ b/lib/cpp/src/thrift/transport/TSSLSocket.cpp |
16 | @@ -151,8 +151,10 @@ static char uppercase(char c); | 17 | @@ -145,8 +145,10 @@ static char uppercase(char c); |
17 | SSLContext::SSLContext(const SSLProtocol& protocol) { | 18 | SSLContext::SSLContext(const SSLProtocol& protocol) { |
18 | if (protocol == SSLTLS) { | 19 | if (protocol == SSLTLS) { |
19 | ctx_ = SSL_CTX_new(SSLv23_method()); | 20 | ctx_ = SSL_CTX_new(SSLv23_method()); |
@@ -23,12 +24,12 @@ index bd13160260..517151f714 100644 | |||
23 | +#endif | 24 | +#endif |
24 | } else if (protocol == TLSv1_0) { | 25 | } else if (protocol == TLSv1_0) { |
25 | ctx_ = SSL_CTX_new(TLSv1_method()); | 26 | ctx_ = SSL_CTX_new(TLSv1_method()); |
26 | } else if (protocol == TLSv1_1) { | 27 | #if (OPENSSL_VERSION_NUMBER >= OPENSSL_VERSION_WITH_TLSv1_1_AND_TLSv1_2) |
27 | diff --git a/lib/cpp/test/SecurityTest.cpp b/lib/cpp/test/SecurityTest.cpp | 28 | diff --git a/lib/cpp/test/SecurityTest.cpp b/lib/cpp/test/SecurityTest.cpp |
28 | index 9968e2c478..23650d6280 100644 | 29 | index 213efd4..08110e7 100644 |
29 | --- a/lib/cpp/test/SecurityTest.cpp | 30 | --- a/lib/cpp/test/SecurityTest.cpp |
30 | +++ b/lib/cpp/test/SecurityTest.cpp | 31 | +++ b/lib/cpp/test/SecurityTest.cpp |
31 | @@ -240,6 +240,14 @@ BOOST_AUTO_TEST_CASE(ssl_security_matrix) | 32 | @@ -239,6 +239,14 @@ BOOST_AUTO_TEST_CASE(ssl_security_matrix) |
32 | continue; | 33 | continue; |
33 | } | 34 | } |
34 | 35 | ||