This is a small fix for compiling with OpenSSL 3.0. As of 3.0, the SHA256_* functions are deprecated in favour of EVP_* functions, which then triggers an error when -Werror is enabled.
Functionality is the same, and I streamlined things slightly. There's also a single-line change for eliminating an unused variable error.
LGTM except the stage2 commit doesn't belong here. I suggest pushing that to master first and then rebasing this PR (can squish all the commits as well while you're at it)
This is a small fix for compiling with OpenSSL 3.0. As of 3.0, the
SHA256_*
functions are deprecated in favour ofEVP_*
functions, which then triggers an error when-Werror
is enabled.Functionality is the same, and I streamlined things slightly. There's also a single-line change for eliminating an unused variable error.