Skip to content

Commit

Permalink
Update ffi/openssl.rb to load openssl 1.0 if available
Browse files Browse the repository at this point in the history
This updates the `ffi_lib` call to specify some alternative libraries which will
prioritize loading openssl 1.0. This fixes an issue on hosts which have openssl
1.1 and 1.0 and would encounter an error for the `SSL_library_init` function not
being found.

Fixes lian#205
  • Loading branch information
krobertson committed May 9, 2017
1 parent 8d41154 commit 6dac09b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bitcoin/ffi/openssl.rb
Expand Up @@ -11,7 +11,7 @@ module OpenSSL_EC
if FFI::Platform.windows?
ffi_lib 'libeay32', 'ssleay32'
else
ffi_lib 'ssl'
ffi_lib [ 'libssl.so.1.0.0', 'ssl' ]
end

NID_secp256k1 = 714
Expand Down

0 comments on commit 6dac09b

Please sign in to comment.