mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 11:15:07 -05:00
configure: fix SIV detection in gnutls
gnutls_aead_cipher_init() is declared in gnutls/crypto.h. If the compiler handles implicit declarations as errors, the SIV support was not detected. Fix the check to use the correct header.
This commit is contained in:
2
configure
vendored
2
configure
vendored
@@ -955,7 +955,7 @@ if [ $feat_ntp = "1" ] && [ $feat_nts = "1" ] && [ $try_gnutls = "1" ]; then
|
|||||||
add_def HAVE_SIV
|
add_def HAVE_SIV
|
||||||
add_def HAVE_NETTLE_SIV_CMAC
|
add_def HAVE_NETTLE_SIV_CMAC
|
||||||
else
|
else
|
||||||
if test_code 'SIV in gnutls' 'gnutls/gnutls.h' \
|
if test_code 'SIV in gnutls' 'gnutls/crypto.h' \
|
||||||
"$test_cflags" "$test_link" '
|
"$test_cflags" "$test_link" '
|
||||||
return gnutls_aead_cipher_init(NULL, GNUTLS_CIPHER_AES_128_SIV, NULL);'
|
return gnutls_aead_cipher_init(NULL, GNUTLS_CIPHER_AES_128_SIV, NULL);'
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user