Skip to content

Commit

Permalink
support any existing TLS/SSL version
Browse files Browse the repository at this point in the history
  • Loading branch information
wg committed Feb 10, 2014
1 parent 44aa1b4 commit ade03d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ SSL_CTX *ssl_init() {
CRYPTO_set_locking_callback(ssl_lock);
CRYPTO_set_id_callback(ssl_id);

if ((ctx = SSL_CTX_new(TLSv1_client_method()))) {
if ((ctx = SSL_CTX_new(SSLv23_client_method()))) {
SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, NULL);
SSL_CTX_set_verify_depth(ctx, 0);
SSL_CTX_set_mode(ctx, SSL_MODE_AUTO_RETRY);
Expand Down

0 comments on commit ade03d2

Please sign in to comment.