Skip to content

Commit

Permalink
Fix minor glitch with TLS_client_method()
Browse files Browse the repository at this point in the history
The code would not compile if ::TLS_client_method() is not available, we
don't need the fallback.
  • Loading branch information
rschu1ze committed Nov 14, 2023
1 parent e068e0f commit 00f0989
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/linux_tcp/openssl.cpp
Expand Up @@ -62,13 +62,7 @@ bool valid()
const SSL_METHOD *TLS_client_method()
{
if (handle == RTLD_DEFAULT)
{
const auto * method = ::TLS_client_method();
if (method == nullptr)
method = ::SSLv23_client_method();

return method;
}
return ::TLS_client_method();

// create a function that loads the method
static Function<decltype(TLS_client_method)> func(handle, "TLS_client_method");
Expand Down

0 comments on commit 00f0989

Please sign in to comment.