From 43a2e79418e3aef97c22c3fb185af7c7613f52c4 Mon Sep 17 00:00:00 2001 From: steffen Date: Sun, 5 May 2019 21:49:30 +0000 Subject: [PATCH] added nonblocking support for SSL --- ssl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl.cc b/ssl.cc index 0d39e9d..bb25c04 100644 --- a/ssl.cc +++ b/ssl.cc @@ -54,7 +54,7 @@ int SSLSocket::NewServerCTX() { if (ctx) SSL_CTX_free(ctx); ctx = NULL; - ctx = SSL_CTX_new(TLSv1_2_server_method()); + ctx = SSL_CTX_new(TLS_server_method()); if (SSL_CTX_use_certificate_file(ctx, certfile.c_str(), SSL_FILETYPE_PEM) <= 0 ) { ERR_print_errors_fp(stderr); @@ -86,7 +86,7 @@ int SSLSocket::NewServerCTX() { int SSLSocket::NewClientCTX() { if (ctx) SSL_CTX_free(ctx); ctx = NULL; - ctx = SSL_CTX_new(TLSv1_2_client_method()); + ctx = SSL_CTX_new(TLS_client_method()); return 1; };