-
Notifications
You must be signed in to change notification settings - Fork 312
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
compilation error because of deprecated BIGNUM functions in openssl 1.1 #5
Comments
Ok, working on it. |
in the meantime here is an AUR pkg for Arch https://aur.archlinux.org/packages/s2geometry-git |
We're seeing a ~40% slowdown and 75% more allocs on some ExactFloat benchmarks with a simple BN_init -> BN_new fix. Do you know if there's an easy fix? |
I don't, I've only tried this without any performance measurement: BN_init() is no longer available as of OpenSSL 1.1.0. It was used to initialize an existing uninitialized BIGNUM. Typically this would be done as follows:
Applications should replace use of BN_init with BN_new instead:
|
Can you put this before #if defined(OPENSSL_API_COMPAT) && OPENSSL_API_COMPAT >= 0x10100000L
extern "C" void bn_init(BIGNUM *a);
#define BN_init bn_init
#endif |
|
Ok, now there's support for both |
@akhenakh Does this actually work for you with openssl 1.1? I'm seeing errors for |
yup, also getting the same errors with 1.1 |
Now it should be working. Let me know if you find otherwise. |
works for me now, thanks |
as of 8a8746c
compilation is failing on Arch because of openssl 1.1:
BN_init() was removed in OpenSSL 1.1.0; use BN_new() instead.
source https://www.openssl.org/docs/man1.1.0/crypto/BN_new.html
Solution for Arch is:
cmake -DOPENSSL_INCLUDE_DIR="/usr/include/openssl-1.0" -DOPENSSL_SSL_LIBRARY=/usr/lib/openssl-1.0/libssl.so ..
It will become an issue for every distribution with recent openssl.
The text was updated successfully, but these errors were encountered: