diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-21 17:01:58 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-21 17:01:58 +0000 |
commit | c5a5222f6009301fd19893e855aaa23e23ed8ce5 (patch) | |
tree | c0f1fd7049297273bb2e62928ecdd332824055ad /configure.ac | |
parent | d64a78aa23dc94f97b7bbc474682b1ca8a2c8a06 (diff) |
-adding logic for TLSA/DANE verification in combination with recently submitted patches to GnuTLS
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index c68978d20..374f00cab 100644 --- a/configure.ac +++ b/configure.ac @@ -1032,7 +1032,14 @@ AC_ARG_WITH(gnutls, AC_CHECK_LIB([gnutls], [gnutls_priority_set], gnutls=true))]) AM_CONDITIONAL(HAVE_GNUTLS, test x$gnutls = xtrue) -AC_DEFINE_UNQUOTED([HAVE_GNUTLS], $gnutls, [We have gnutls]) +AC_DEFINE_UNQUOTED([HAVE_GNUTLS], $gnutls, [We have GnuTLS]) + +gnutls_dane=0 +AC_CHECK_HEADERS([gnutls/dane.h], + AC_CHECK_LIB([gnutls-dane], [dane_verify_crt_raw], + gnutls_dane=true)) +AM_CONDITIONAL(HAVE_GNUTLS_DANE, test x$gnutls_dane = xtrue) +AC_DEFINE_UNQUOTED([HAVE_GNUTLS_DANE], $gnutls_dane, [We have GnuTLS with DANE support]) # Test if we are building for superMUC @@ -1470,7 +1477,12 @@ fi #gnutls if test x$gnutls != xtrue then - AC_MSG_NOTICE([NOTICE: gnutls not found, gnunet-gns-proxy will not be built]) + AC_MSG_NOTICE([NOTICE: GnuTLS not found, gnunet-gns-proxy will not be built]) +else +if test x$gnutls_dane != xtrue +then + AC_MSG_NOTICE([NOTICE: GnuTLS has no DANE support, DANE validation will not be possible]) +fi fi # java ports |