Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Prefer OpenSSL 1.0.x for portable builds
Browse files Browse the repository at this point in the history
Future releases of .NET Core prefer OpenSSL 1.1.x. For the sake of
compatiblity, 2.x releases should prefer 1.0.x.
  • Loading branch information
omajid committed Jan 17, 2019
1 parent fc9d356 commit 60e4274
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ bool OpenLibrary()
libssl = dlopen(soName, RTLD_LAZY);
}

if (libssl == nullptr)
{
// Prefer OpenSSL 1.1.x
libssl = dlopen("libssl.so.1.1", RTLD_LAZY);
}

if (libssl == nullptr)
{
// Debian 9 has dropped support for SSLv3 and so they have bumped their soname. Let's try it
Expand All @@ -73,6 +67,11 @@ bool OpenLibrary()
libssl = dlopen("libssl.so.10", RTLD_LAZY);
}

if (libssl == nullptr)
{
libssl = dlopen("libssl.so.1.1", RTLD_LAZY);
}

return libssl != nullptr;
}

Expand Down

0 comments on commit 60e4274

Please sign in to comment.