]> xenbits.xensource.com Git - libvirt.git/commitdiff
Remove check for gnutls/crypto.h
authorJán Tomko <jtomko@redhat.com>
Tue, 15 May 2018 10:48:33 +0000 (12:48 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 16 May 2018 08:40:40 +0000 (10:40 +0200)
Assume its presence for gnutls >= 3.2.

Check introduced by <commit 7d21d6b>.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
m4/virt-gnutls.m4
src/rpc/virnettlscontext.c
src/util/vircrypto.c

index f25cfb60f723bd8822eaf8cd07af053b3c7b0cfb..426a1a034827d761a7a71eb8d90668bdee9bd9f8 100644 (file)
@@ -27,19 +27,6 @@ AC_DEFUN([LIBVIRT_CHECK_GNUTLS],[
   dnl Require gnutls >= 3.2.0 because of 3.2.11 in Ubuntu 14.04
   dnl That should have all the functions we use (in >= 2.12)
   dnl and also use nettle, because it's >= 3.0
-
-  if test "$with_gnutls" = "yes" ; then
-    OLD_CFLAGS="$CFLAGS"
-    OLD_LIBS="$LIBS"
-    CFLAGS="$CFLAGS $GNUTLS_CFLAGS"
-    LIBS="$LIBS $GNUTLS_LIBS"
-    AC_CHECK_HEADERS([gnutls/crypto.h], [], [], [[
-      #include <gnutls/gnutls.h>
-    ]])
-
-    CFLAGS="$OLD_CFLAGS"
-    LIBS="$OLD_LIBS"
-  fi
 ])
 
 AC_DEFUN([LIBVIRT_RESULT_GNUTLS],[
index 2c46aebf31693714393be72b937cbd0550945cee..97b74de89ea8bc0cdcefd9803f2d9b3b533df132 100644 (file)
@@ -25,9 +25,7 @@
 #include <stdlib.h>
 
 #include <gnutls/gnutls.h>
-#if HAVE_GNUTLS_CRYPTO_H
-# include <gnutls/crypto.h>
-#endif
+#include <gnutls/crypto.h>
 #include <gnutls/x509.h>
 
 #include "virnettlscontext.h"
index 2118fdba224672c3c8515ea0ae38bd8151cbbba0..bbc2a01f22f83eac663aa0f7e7f96ce7d2c912a3 100644 (file)
@@ -28,9 +28,7 @@
 
 #ifdef WITH_GNUTLS
 # include <gnutls/gnutls.h>
-# if HAVE_GNUTLS_CRYPTO_H
-#  include <gnutls/crypto.h>
-# endif
+# include <gnutls/crypto.h>
 #endif
 
 VIR_LOG_INIT("util.crypto");