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

Deprecated openssl calls during initialization #205

Closed
jimpo opened this issue May 7, 2017 · 2 comments · Fixed by #206
Closed

Deprecated openssl calls during initialization #205

jimpo opened this issue May 7, 2017 · 2 comments · Fixed by #206

Comments

@jimpo
Copy link
Contributor

jimpo commented May 7, 2017

FFI::NotFoundError: Function 'SSL_library_init' not found in [libssl.so]

SSL_library_init was deprecated in OpenSSL 1.1.0 along with ERR_load_crypto_strings, and SSL_load_error_strings. They are called from https://github.com/lian/bitcoin-ruby/blob/master/lib/bitcoin/ffi/openssl.rb#L379.

https://www.openssl.org/docs/man1.1.0/ssl/SSL_library_init.html
https://www.openssl.org/docs/man1.1.0/crypto/ERR_load_crypto_strings.html
https://www.openssl.org/docs/man1.1.0/crypto/SSL_load_error_strings.html

krobertson added a commit to krobertson/bitcoin-ruby that referenced this issue May 9, 2017
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
krobertson added a commit to krobertson/bitcoin-ruby that referenced this issue May 9, 2017
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
@lian lian closed this as completed in #206 May 9, 2017
@lian lian reopened this May 9, 2017
@michalf
Copy link

michalf commented Jun 13, 2017

Hi, is this a permanent fix? It definitely works for us, but it would be great if it was included in a published gem. Otherwise managing gems gets a bit more difficult (specific_install to the rescue).

Thanks for your great work!

@lian
Copy link
Owner

lian commented Jul 4, 2017

yes, will release a new gem this week. merging segwit support too. :)

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 a pull request may close this issue.

3 participants