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

Support openssl 3.0.x #447

Open
dfordivam opened this issue Jan 25, 2024 · 0 comments
Open

Support openssl 3.0.x #447

dfordivam opened this issue Jan 25, 2024 · 0 comments

Comments

@dfordivam
Copy link

dfordivam commented Jan 25, 2024

The speculos currently fails to compile with openssl 3.0.x due to use of deprecated APIs.

https://www.openssl.org/docs/manmaster/man3/BN_is_prime.html

The BN_is_prime_ex() and BN_is_prime_fasttest_ex() functions were deprecated in OpenSSL 3.0.

https://www.openssl.org/blog/blog/2023/03/28/1.1.1-EOL/

src/bolos/cx_mpi.c:1133:3: error: 'BN_is_prime_ex' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
 1133 |   if ((is_prime = BN_is_prime_ex(x, 64, local_bn_ctx, NULL)) == 1) {
src/bolos/cx_ec.c:1857:3: error: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
       >  1857 |   EC_KEY_free(peerkey);
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

1 participant