From d74e8ea2f6d195a0360f2f797562d42168540fa4 Mon Sep 17 00:00:00 2001 From: joe Date: Wed, 31 Jul 2013 14:05:23 +0000 Subject: * src/ne_gnutls.c, macros/neon.m4: Support build with GnuTLS 3, patch by Bartosz Brachaczek. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1915 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845 --- macros/neon.m4 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'macros') diff --git a/macros/neon.m4 b/macros/neon.m4 index f96a76c..29fcaa9 100644 --- a/macros/neon.m4 +++ b/macros/neon.m4 @@ -989,12 +989,13 @@ gnutls) # Check for functions in later releases NE_CHECK_FUNCS([gnutls_session_get_data2 gnutls_x509_dn_get_rdn_ava \ gnutls_sign_callback_set \ + gnutls_certificate_get_issuer \ gnutls_certificate_get_x509_cas \ - gnutls_certificate_verify_peers2]) + gnutls_x509_crt_sign2]) - # fail if gnutls_certificate_verify_peers2 is not found - if test x${ac_cv_func_gnutls_certificate_verify_peers2} != xyes; then - AC_MSG_ERROR([GnuTLS version predates gnutls_certificate_verify_peers2, newer version required]) + # fail if gnutls_x509_crt_sign2 is not found (it was introduced in 1.2.0, which is required) + if test x${ac_cv_func_gnutls_x509_crt_sign2} != xyes; then + AC_MSG_ERROR([GnuTLS version predates gnutls_x509_crt_sign2, newer version required (at least 1.2.0)]) fi # Check for iconv support if using the new RDN access functions: -- cgit v1.2.1