Adds WITH_OPENSSL build option#598
Open
jonathanspw wants to merge 1 commit into
Open
Conversation
If it is ON, OpenSSL will be used instead of internal implementation of computing hashes (MD5, SHA1, SHA224, SHA256, SHA384, SHA512).
3f7e6e3 to
8e10473
Compare
Member
|
Why is "patch.patch" checked in? |
ppisar
added a commit
to ppisar/libsolv
that referenced
this pull request
Jun 18, 2026
It adds WITH_OPENSSL build option, defaulting to OFF. If it is ON,
OpenSSL will be used for computing hashes (MD5, SHA1, SHA224, SHA256,
SHA384, SHA512) instead of the internal implementation.
This patch intentionally uses OpenSSL API which has not been
deprecated in OpenSSL 3 and 4. It calls these functions added in these
OpenSSL version:
EVP_MD_CTX_dup() since 3.1.0
EVP_DigestInit_ex2() since 3.0.0
EVP_MD_CTX_new() since 1.1.0
EVP_sha512() since 1.1.0
EVP_DigestFinal_ex() since 1.0.0
The EVP_MD_CTX_dup() could be trivialy reimplemented, but since
3.0.0 users can easily upgrade to 3.1.0, I set a minimal required
OpenSSL version to 3.1.0.
This patch is based on Jaroslav Rohel <jrohel@redhat.com> and Jonathan
Wright <jonathan@almalinux.org> work
<openSUSE#598> which used the
deprecated OpenSSL API.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If it is ON, OpenSSL will be used instead of internal implementation of computing hashes (MD5, SHA1, SHA224, SHA256, SHA384, SHA512).
Original patch by Jaroslav Rohel jrohel@redhat.com. I've done rebasing work to get it compatible with the current master branch.
This has been carried downstream in CentOS/RHEL for a while but we see no reason why it cannot be upstreamed.
https://gitlab.com/redhat/centos-stream/rpms/libsolv/-/merge_requests/28