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

OpenSSL 3.0 support #2842

Closed
bkircher opened this issue Nov 1, 2021 · 2 comments
Closed

OpenSSL 3.0 support #2842

bkircher opened this issue Nov 1, 2021 · 2 comments

Comments

@bkircher
Copy link

bkircher commented Nov 1, 2021

Any plans on supporting OpenSSL 3.0.0?

The OpenSSL 3.0 release is going to be a significantly new release with changed ABI however with minimal API changes.

When building against OpenSSL 3.0 I see a bunch of deprecation warnings:

src/lib/prov/openssl/openssl_rsa.cpp: In constructor 'Botan::{anonymous}::OpenSSL_RSA_Encryption_Operation::OpenSSL_RSA_Encryption_Operation(const Botan::RSA_PublicKey&, int, std::size_t)':
src/lib/prov/openssl/openssl_rsa.cpp:49:35: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   49 |          m_openssl_rsa(nullptr, ::RSA_free), m_padding(pad)
      |                                   ^~~~~~~~
In file included from src/lib/prov/openssl/openssl_rsa.cpp:22:
/usr/include/openssl/rsa.h:293:28: note: declared here
  293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
      |                            ^~~~~~~~
@randombit
Copy link
Owner

The OpenSSL provider is being removed in master (#2827) due to this. The benefit is so marginal that the effort of rewriting everything is not worthwhile. For 2.18.2 we've just removed support for the algorithms that OpenSSL 3.0 moved to the deprecated provider (since as a library we couldn't/shouldn't enable a provider unexpectedly) and accepted the deprecation warnings. If OpenSSL 4.0 comes out within the lifetime of the 2.x releases then we'll remove the OpenSSL provider entirely at that point.

@bkircher
Copy link
Author

bkircher commented Nov 1, 2021

Thanks for clarifying!

algitbot pushed a commit to alpinelinux/aports that referenced this issue Aug 2, 2022
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

2 participants