taisei-project / taisei

A free and open-source Touhou Project fangame
https://taisei-project.org/
Other
1.12k stars 97 forks source link

Fix OpenSSL 3.0 deprecation error for SHA256 functions #344

Closed StarWitch closed 2 years ago

StarWitch commented 2 years ago

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.

Akaricchi commented 2 years ago

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)