ITS#8753 Set minimum GnuTLS version to 3.2.2

Ensure gnutls_digest_get_id() is available
This commit is contained in:
Ryan Tandy 2019-08-26 15:08:32 -07:00 committed by Ondřej Kuzník
parent 8514f2a771
commit 67f81dccc8

View File

@ -1233,8 +1233,8 @@ if test $ol_link_tls = no ; then
if test $ac_cv_header_gnutls_gnutls_h = yes ; then
AC_PREPROC_IFELSE([AC_LANG_SOURCE(
[[#include <gnutls/gnutls.h>]
[#if GNUTLS_VERSION_NUMBER < 0x020c00]
[#error "GnuTLS 2.12.0 or newer required"]
[#if GNUTLS_VERSION_NUMBER < 0x030202]
[#error "GnuTLS 3.2.2 or newer required"]
[#endif]])],
, [AC_MSG_FAILURE([GnuTLS is too old])])