Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check for OpenSLL 1.0 #32

Merged
merged 1 commit into from
Nov 17, 2017
Merged

check for OpenSLL 1.0 #32

merged 1 commit into from
Nov 17, 2017

Conversation

fupduck
Copy link
Contributor

@fupduck fupduck commented Nov 12, 2017

Loading the functions fails with OpenSSL 1.1. To ensure OpenSSL 1.0 is
loaded we try to load "libssl.so.10", "libssl.so.1.1.0" and "libssl.so".
"libssl.so.10" is the name in Debian, Ubuntu, ZentOS, ...
"libssl.so.1.1.0" is the name in arch, ...
"libssl.so" will now mostly refer to OpenSSL 1.1, but it could be
OpenSSL 1.0, so it is added as a fallback.

We could add a check to libssl.so by looking if the method SSLeay() exists, but I thought it unnecessary - the load function will fail if OpenSSL 1.1 is used anyhow.

This is a more generic approach than #23

Loading the functions fails with OpenSSL 1.1. To ensure OpenSSL 1.0 is
loaded we try to load "libssl.so.10", "libssl.so.1.1.0" and "libssl.so".
"libssl.so.10" is the name in Debian, Ubuntu, ZentOS, ...
"libssl.so.1.1.0" is the name in arch, ...
"libssl.so" will now mostly refer to OpenSSL 1.1, but it could be
OpenSSL 1.0, so it is added as a fallback.
@cocagne cocagne merged commit 1a2fdd4 into cocagne:master Nov 17, 2017
@fupduck fupduck deleted the loadOpenSSL1.0 branch April 11, 2018 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants