mirror of
https://gitlab.com/chrony/chrony.git
synced 2026-03-10 16:49:38 -04:00
cmac+hash: add support for Nettle 4.0
Support for truncated digests was removed in Nettle 4.0. The digest functions no longer accept the output length. Provide a full-length buffer and copy the requested length of the digest, same as with the other crypto providers.
This commit is contained in:
2
configure
vendored
2
configure
vendored
@@ -911,7 +911,7 @@ HASH_LINK=""
|
||||
if [ $feat_sechash = "1" ] && [ "x$HASH_LINK" = "x" ] && [ $try_nettle = "1" ]; then
|
||||
test_cflags="`pkg_config --cflags nettle`"
|
||||
test_link="`pkg_config --libs nettle`"
|
||||
if test_code 'nettle' 'nettle/nettle-meta.h nettle/sha2.h' \
|
||||
if test_code 'nettle' 'nettle/nettle-meta.h nettle/sha2.h nettle/version.h' \
|
||||
"$test_cflags" "$test_link" \
|
||||
'return nettle_hashes[0]->context_size;'
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user