diff options
Diffstat (limited to 'src/common/ssl.c')
-rw-r--r-- | src/common/ssl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/ssl.c b/src/common/ssl.c index 75a81250..742da619 100644 --- a/src/common/ssl.c +++ b/src/common/ssl.c @@ -31,7 +31,7 @@ #include "ssl.h" /* struct cert_info */ #ifndef HAVE_SNPRINTF -#include <glib.h> +#include <glib.h> #include <glib/gprintf.h> #define snprintf g_snprintf #endif @@ -77,7 +77,7 @@ _SSL_context_init (void (*info_cb_func), int server) SSLeay_add_ssl_algorithms (); SSL_load_error_strings (); - ctx = SSL_CTX_new (server ? SSLv3_server_method() : SSLv3_client_method ()); + ctx = SSL_CTX_new (server ? SSLv23_server_method() : SSLv23_client_method ()); SSL_CTX_set_session_cache_mode (ctx, SSL_SESS_CACHE_BOTH); SSL_CTX_set_timeout (ctx, 300); @@ -288,7 +288,7 @@ _SSL_socket (SSL_CTX *ctx, int sd) __SSL_critical_error ("SSL_new"); SSL_set_fd (ssl, sd); - if (ctx->method == SSLv3_client_method()) + if (ctx->method == SSLv23_client_method()) SSL_set_connect_state (ssl); else SSL_set_accept_state(ssl); |