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

common: update sha256sum to use OpenSSL 3.0 API, add test cases #8340

Merged
merged 2 commits into from May 27, 2022

Conversation

selsta
Copy link
Collaborator

@selsta selsta commented May 17, 2022

Patch by @jeffro256 and from IRC, continued from #8322. This unfortunately ended in a lot of discussion so I wanted to open this so that we can just move on.

Copy link
Contributor

@jeffro256 jeffro256 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I appreciate that you're trying to find common ground and that you made me co-author ;)

src/common/util.cpp Outdated Show resolved Hide resolved
src/common/util.cpp Outdated Show resolved Hide resolved
src/common/util.cpp Outdated Show resolved Hide resolved
src/common/util.h Outdated Show resolved Hide resolved
@selsta selsta force-pushed the openssl branch 2 times, most recently from 4fe1f77 to 9444da5 Compare May 17, 2022 21:27
src/common/util.h Outdated Show resolved Hide resolved
src/common/util.cpp Outdated Show resolved Hide resolved
@selsta selsta force-pushed the openssl branch 2 times, most recently from 9060dd7 to cbdf061 Compare May 17, 2022 23:29
As of OpenSSL 3.0, `SHA256_Init`, `SHA256_Update`, and `SHA256_Final`
are deprectaed in favor of the higher-level `EVP_*` class of functions.
This causes compiler warnings, and sooner or later, will cause build
errors as these functions are excluded from distro headers.

Also add some documentation.
@luigi1111 luigi1111 merged commit 9750e1f into monero-project:master May 27, 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

Successfully merging this pull request may close these issues.

None yet

4 participants