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

charm-crypto compilation fails with OpenSSL 1.1.1 #209

Open
purchawek opened this issue Mar 8, 2019 · 2 comments
Open

charm-crypto compilation fails with OpenSSL 1.1.1 #209

purchawek opened this issue Mar 8, 2019 · 2 comments

Comments

@purchawek
Copy link

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.

@jakinyele
Copy link
Member

@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!

EquiJoins pushed a commit to EquiJoins/EquiJoinsOverEncryptedData that referenced this issue Jun 28, 2021
The existing commit of `charm` has a [known issue](JHUISI/charm#209)
with OpenSSL 1.1.1 (i.e. the version that supports TLS 1.3). As such, to
use the the fhipe code, one would need to locally downgrade their
version of OpenSSL. However, this is very inconvenient and strongly
discouraged. Instead, updating charm to the dev branch, which supports
the latest version of OpenSSL, fixes the issue "upstream".
@VikasGowdaLV
Copy link

VikasGowdaLV commented Jul 13, 2023

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!

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

No branches or pull requests

3 participants