diff options
-rw-r--r-- | lib/ssl_openssl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ssl_openssl.c b/lib/ssl_openssl.c index 38ce0598..2f668da2 100644 --- a/lib/ssl_openssl.c +++ b/lib/ssl_openssl.c @@ -66,8 +66,9 @@ void ssl_init(void) SSL_library_init(); - meth = TLSv1_client_method(); + meth = SSLv23_client_method(); ssl_ctx = SSL_CTX_new(meth); + SSL_CTX_set_options(ssl_ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3); initialized = TRUE; } |