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

Fix build without openssl/engine.h #4873

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

yselkowitz
Copy link

Resolved issues:

Description of changes:

The ENGINE APIs are deprecated in OpenSSL v3, and the <openssl/engine.h> header is not always available anymore (e.g. Fedora 41 and RHEL 10). This places the inclusion of the header under the same condition as the use of its declarations.

Call-outs:

Testing:

Mock-built on both Fedora 40 (where ENGINE is not deprecated and the header is present by default) and rawhide (where ENGINE is deprecated and the header is in an uninstalled separate subpackage).

@toidiu
Copy link
Contributor

toidiu commented Nov 6, 2024

Thanks for the PR. This looks correct to me. Requesting CI run and another reviewer.

@toidiu
Copy link
Contributor

toidiu commented Nov 6, 2024

@yselkowitz I suspect that the test might also need to be gated.

@maddeleine
Copy link
Contributor

We've previously discussed this code change: #4705

The ENGINE APIs are deprecated in OpenSSL v3, and the <openssl/engine.h>
header is not always available anymore (e.g. Fedora 41 and RHEL 10).  This
places the inclusion of the header under the same condition as the use of
its declarations.
@yselkowitz
Copy link
Author

@yselkowitz I suspect that the test might also need to be gated.

Indeed, modified.

We've previously discussed this code change: #4705

Of course I hadn't seen that other PR, but this is no longer a narrow usecase; both Fedora 41 and RHEL 10 do not include the engine.h header by default or at all, and there is increasing compatibility in the ecosystem with inclusion of this header needing to be gated.

@toidiu
Copy link
Contributor

toidiu commented Nov 18, 2024

Heads up @yselkowitz. We are implementing a more comprehensive version of this (feature probe for ENGINE support). #4878

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

Successfully merging this pull request may close these issues.

3 participants