charm
charm copied to clipboard
charm-crypto compilation fails with OpenSSL 1.1.1
During compilation with make (directly from sources here on master) i get the following compilation error:
charm/core/math/integer/integermodule.c:130:6: error: dereferencing pointer to incomplete type ‘BIGNUM’ {aka ‘struct bignum_st’}
if(p->neg != 0) {
Changing it to use BN_is_negative
fixes the error but I've seen that this approach was also erroneous as presented in #194 .
I believe that what should be done is conditional compilation based on the version of OpenSSL installed and supporting both APIs simultaneously but I may be wrong. If you agree, I may try to do this.
@purchawek Yeah, that is correct. And I was trying to figure out which versions of OpenSSL BN_is_negative
is missing. Please go ahead. Thanks!
Hey guys, @purchawek @jakinyele Even I am facing the same issue, did we find the solution lately? I was using openSSL 1.0.0 and even after upgrading to 1.1.1 there is no help Thanks!