mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 10:25:18 +00:00
Merge pull request #2864 from BioDataAnalysis/emmenlau_fix_openssl_version_macros
lib/cpp/test/Security*Test.cpp: Fix the check for OpenSSL version macro
This commit is contained in:
commit
ffa4f541a5
@ -199,7 +199,7 @@ BOOST_AUTO_TEST_CASE(ssl_security_matrix) {
|
||||
try {
|
||||
// matrix of connection success between client and server with different SSLProtocol selections
|
||||
static_assert(apache::thrift::transport::LATEST == 5, "Mismatch in assumed number of ssl protocols");
|
||||
bool ossl1 = OPENSSL_VERSION_MAJOR == 1;
|
||||
bool ossl1 = (OPENSSL_VERSION_NUMBER < 0x30000000L);
|
||||
bool matrix[apache::thrift::transport::LATEST + 1][apache::thrift::transport::LATEST + 1] =
|
||||
{
|
||||
// server = SSLTLS SSLv2 SSLv3 TLSv1_0 TLSv1_1 TLSv1_2
|
||||
|
@ -221,7 +221,7 @@ BOOST_AUTO_TEST_CASE(ssl_security_matrix)
|
||||
{
|
||||
// matrix of connection success between client and server with different SSLProtocol selections
|
||||
static_assert(apache::thrift::transport::LATEST == 5, "Mismatch in assumed number of ssl protocols");
|
||||
bool ossl1 = OPENSSL_VERSION_MAJOR == 1;
|
||||
bool ossl1 = (OPENSSL_VERSION_NUMBER < 0x30000000L);
|
||||
bool matrix[apache::thrift::transport::LATEST + 1][apache::thrift::transport::LATEST + 1] =
|
||||
{
|
||||
// server = SSLTLS SSLv2 SSLv3 TLSv1_0 TLSv1_1 TLSv1_2
|
||||
|
Loading…
Reference in New Issue
Block a user