Skip to content

Commit

Permalink
revert using of deprecated SSLv23_client_method in SSL_CTX_new
Browse files Browse the repository at this point in the history
  • Loading branch information
p-alik committed Mar 17, 2017
1 parent 39c0269 commit e0c5b1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libgearman/universal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ bool gearman_universal_st::init_ssl()
SSL_load_error_strings();
SSL_library_init();

if ((_ctx_ssl= SSL_CTX_new(SSLv23_client_method())) == NULL)
if ((_ctx_ssl= SSL_CTX_new(TLSv1_client_method())) == NULL)
{
gearman_universal_set_error(*this, GEARMAN_INVALID_ARGUMENT, GEARMAN_AT, "CyaTLSv1_client_method() failed");
return false;
Expand Down
2 changes: 1 addition & 1 deletion util/instance.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ bool Instance::init_ssl()
SSL_load_error_strings();
SSL_library_init();

if ((_ctx_ssl= SSL_CTX_new(SSLv23_client_method())) == NULL)
if ((_ctx_ssl= SSL_CTX_new(TLSv1_client_method())) == NULL)
{
_last_error= "SSL_CTX_new error";
return false;
Expand Down

0 comments on commit e0c5b1c

Please sign in to comment.