Skip to content

ssl: support libssls with no ENGINE implementation#4852

Closed
Luke Chen (showuon) wants to merge 1 commit intoconfluentinc:masterfrom
showuon:ssl-no-engine-luke
Closed

ssl: support libssls with no ENGINE implementation#4852
Luke Chen (showuon) wants to merge 1 commit intoconfluentinc:masterfrom
showuon:ssl-no-engine-luke

Conversation

@showuon
Copy link
Copy Markdown

@showuon Luke Chen (showuon) commented Sep 25, 2024

OpenSSL can be built without ENGINE support, and some libssl-compatible forks (e.g. BoringSSL) don't contain any ENGINE implementation at all - guard all references to the ENGINE API using OPENSSL_NO_ENGINE so these libssls can be used with librdkafka.

The definition of WITH_SSL_ENGINE incorrectly assumes that libssl is always built with support for the ENGINE API if it is provided by OpenSSL >= 1.1.0 or LibreSSL. OPENSSL_NO_ENGINE is defined by OpenSSL and all of its forks if the ENGINE API was disabled at compile-time - ensure that the definition of OPENSSL_NO_ENGINE is taken into account
when defining WITH_SSL_ENGINE.

Without this PR, it might impact some linux users to adopt librdkafka project because some Linux distros are removing openssl engines support from their openssl package (ex: fedora).

Note: This PR is from #3535 (which had approved by Magnus Edenhill (@edenhill)) , since the change log version is out-dated, and the original author is not working on it anymore.

Co-authored-by: Chris Novakovic [email protected]

@showuon Luke Chen (showuon) requested a review from a team as a code owner September 25, 2024 12:02
@confluent-cla-assistant
Copy link
Copy Markdown

confluent-cla-assistant Bot commented Sep 25, 2024

🎉 All Contributor License Agreements have been signed. Ready to merge.
✅ showuon
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

@cla-assistant
Copy link
Copy Markdown

cla-assistant Bot commented Sep 25, 2024

CLA assistant check
All committers have signed the CLA.

@showuon
Copy link
Copy Markdown
Author

Luke Chen (showuon) commented Sep 25, 2024

Milind L (@milindl) Emanuele Sabellico (@emasab) Anchit Jain (@anchitj) , call for review for this 1 line change, and had already approved by Magnus Edenhill (@edenhill) before. Without this change, it will impact some users adopt librdkafka. Thank you.

@chrisnovakovic
Copy link
Copy Markdown
Contributor

This duplicates #3535, which I've now rebased cleanly on master (and has a changelog update).

@showuon
Copy link
Copy Markdown
Author

This duplicates #3535, which I've now rebased cleanly on master (and has a changelog update).

Thank you Chris Novakovic (@chrisnovakovic) ! Closing this PR.

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.

2 participants