summaryrefslogtreecommitdiff
path: root/ACE/examples
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2015-11-07 15:25:07 +0100
committerKurt Roeckx <kurt@roeckx.be>2015-11-07 16:51:35 +0100
commit28b1055680abb28bda864bb9b49a811da20fe630 (patch)
treed2871fe3d4c0e7bc0936eecb6e5b7153385a2a36 /ACE/examples
parentf39120a08256e8b0f9bd4207b9387e82a860c4fd (diff)
downloadATCD-28b1055680abb28bda864bb9b49a811da20fe630.tar.gz
Remove version specific OpenSSL methods
The SSLv23_* methods are the only one that support multiple versions.
Diffstat (limited to 'ACE/examples')
-rw-r--r--ACE/examples/C++NPv2/AC_Client_Logging_Daemon.cpp2
-rw-r--r--ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp2
-rw-r--r--ACE/examples/C++NPv2/TPC_Logging_Server.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/ACE/examples/C++NPv2/AC_Client_Logging_Daemon.cpp b/ACE/examples/C++NPv2/AC_Client_Logging_Daemon.cpp
index 7ab98e0fbe1..f4e2165b8bf 100644
--- a/ACE/examples/C++NPv2/AC_Client_Logging_Daemon.cpp
+++ b/ACE/examples/C++NPv2/AC_Client_Logging_Daemon.cpp
@@ -318,7 +318,7 @@ int AC_CLD_Acceptor::handle_close (ACE_HANDLE,
int AC_CLD_Connector::open (ACE_Reactor *r, int flags) {
if (PARENT::open (r, flags) != 0) return -1;
OpenSSL_add_ssl_algorithms ();
- ssl_ctx_ = SSL_CTX_new (SSLv3_client_method ());
+ ssl_ctx_ = SSL_CTX_new (SSLv23_client_method ());
if (ssl_ctx_ == 0) return -1;
if (SSL_CTX_use_certificate_file (ssl_ctx_,
diff --git a/ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp b/ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp
index 8fde7734cc4..47de5c935c6 100644
--- a/ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp
+++ b/ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp
@@ -235,7 +235,7 @@ int AIO_CLD_Connector::validate_connection
if (ssl_ctx_ == 0) {
OpenSSL_add_ssl_algorithms ();
- ssl_ctx_ = SSL_CTX_new (SSLv3_client_method ());
+ ssl_ctx_ = SSL_CTX_new (SSLv23_client_method ());
if (ssl_ctx_ == 0) return -1;
if (SSL_CTX_use_certificate_file (ssl_ctx_,
diff --git a/ACE/examples/C++NPv2/TPC_Logging_Server.cpp b/ACE/examples/C++NPv2/TPC_Logging_Server.cpp
index 72fdd160b6a..e314a8de33f 100644
--- a/ACE/examples/C++NPv2/TPC_Logging_Server.cpp
+++ b/ACE/examples/C++NPv2/TPC_Logging_Server.cpp
@@ -51,7 +51,7 @@ int TPC_Logging_Acceptor::open
use_select, reuse_addr) != 0)
return -1;
OpenSSL_add_ssl_algorithms ();
- ssl_ctx_ = SSL_CTX_new (SSLv3_server_method ());
+ ssl_ctx_ = SSL_CTX_new (SSLv23_server_method ());
if (ssl_ctx_ == 0) return -1;
if (SSL_CTX_use_certificate_file (ssl_ctx_,