lua/digest: use OpenSSL version of SHA1
Since commit f6ea7180 ("Try to load several variants of libssl.") the digest module uses an internal version of SHA1. Back then, we didn't link the OpenSSL library. Instead, we tried to load it dynamically. Since on some distributions the library could be missing, it was decided to implement an internal version of SHA1, see #405. However, since commit 59a55740 ("Link against libssl and libcrypto. Issue #1382") we link the OpenSSL library unconditionally so there's no need in having an internal implementation of SHA1. Let's drop it and switch the digest module to the version of SHA1 implemented by the crypto module using OpenSSL. Part of #7987 NO_DOC=code cleanup NO_TEST=code cleanup NO_CHANGELOG=code cleanup
Showing
- extra/exports 0 additions, 1 deletionextra/exports
- src/lua/digest.c 0 additions, 15 deletionssrc/lua/digest.c
- src/lua/digest.h 0 additions, 3 deletionssrc/lua/digest.h
- src/lua/digest.lua 1 addition, 19 deletionssrc/lua/digest.lua
- static-build/test/static-build/exports.test.lua 0 additions, 1 deletionstatic-build/test/static-build/exports.test.lua
- test/app/digest.result 2 additions, 2 deletionstest/app/digest.result
Please register or sign in to comment