Add support for computing hashes using OpenSSL >= 3.1.0#627
Open
ppisar wants to merge 1 commit into
Open
Conversation
Member
|
You also need to implement SOLV_CHKSUMP_IMPL_FREE |
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.
Contributor
Author
|
You are right. I added handling for SOLV_CHKSUMP_IMPL_FREE. |
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.
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:
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
#598 which used the deprecated OpenSSL API.