configure: require TLS1.3 support in gnutls

Before enabling NTS support, explicitly check for TLS1.3 support in
gnutls, which is required by NTS.
This commit is contained in:
Miroslav Lichvar 2020-09-14 11:00:29 +02:00
parent cc535632d1
commit 3177474ae8

2
configure vendored
View file

@ -974,7 +974,7 @@ if [ $feat_ntp = "1" ] && [ $feat_nts = "1" ] && [ $try_gnutls = "1" ]; then
test_link="`pkg_config --libs gnutls`"
if test_code 'gnutls' 'gnutls/gnutls.h' \
"$test_cflags" "$test_link" '
return gnutls_init(NULL, 0) +
return gnutls_init(NULL, 0) + GNUTLS_TLS1_3 +
gnutls_priority_init2(NULL, "", NULL, GNUTLS_PRIORITY_INIT_DEF_APPEND) +
gnutls_prf_rfc5705(NULL, 0, "", 0, "", 16, NULL);'
then