diff options
author | Steve Huston <shuston@riverace.com> | 2015-01-09 11:29:00 -0500 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2015-01-09 12:32:53 -0500 |
commit | 5c3be5e7c83de98794c4d625317a76a84fd94e63 (patch) | |
tree | ba67e297164c1ee3c695047c6ae8631edb3bf859 | |
parent | 95caee95055b868a23b26008a57a757f11230880 (diff) | |
download | ATCD-5c3be5e7c83de98794c4d625317a76a84fd94e63.tar.gz |
Properly detect lack of TLS versions
-rw-r--r-- | ACE/ace/SSL/SSL_Context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/ace/SSL/SSL_Context.cpp b/ACE/ace/SSL/SSL_Context.cpp index ba25611aa74..3d8f163b31a 100644 --- a/ACE/ace/SSL/SSL_Context.cpp +++ b/ACE/ace/SSL/SSL_Context.cpp @@ -274,7 +274,7 @@ ACE_SSL_Context::set_mode (int mode) case ACE_SSL_Context::TLSv1: method = ::TLSv1_method (); break; -#ifdef TLS1_1_VERSION +#if defined(TLS1_1_VERSION) && (TLS_MAX_VERSION >= TLS1_1_VERSION) case ACE_SSL_Context::TLSv1_1_client: method = ::TLSv1_1_client_method (); break; @@ -285,7 +285,7 @@ ACE_SSL_Context::set_mode (int mode) method = ::TLSv1_1_method (); break; #endif -#ifdef TLS1_2_VERSION +#if defined(TLS1_2_VERSION) && (TLS_MAX_VERSION >= TLS1_2_VERSION) case ACE_SSL_Context::TLSv1_2_client: method = ::TLSv1_2_client_method (); break; |