]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fix test error with nettle in non-default location
authorAndreas Metzler <ametzler@bebt.de>
Tue, 9 Feb 2021 13:16:54 +0000 (14:16 +0100)
committerAndreas Metzler <ametzler@bebt.de>
Sat, 13 Feb 2021 13:30:19 +0000 (14:30 +0100)
Move #include <nettle/memxor.h> from gnutls_int.h to lib/cipher.c, drop
now superfluous NETTLE_CFLAGS from CPPFLAGS of multiple tests #including
gnutls_int.h.

Signed-off-by: Andreas Metzler <ametzler@bebt.de>
lib/cipher.c
lib/gnutls_int.h
tests/Makefile.am

index 275c57a4e85d4b323857ef001502535e924217a0..90ab1d3a9b2105ee39b9f9387f4f68f8c4e2c5f8 100644 (file)
@@ -42,6 +42,8 @@
 #include <state.h>
 #include <random.h>
 
+#include <nettle/memxor.h>
+
 static int encrypt_packet(gnutls_session_t session,
                            uint8_t * cipher_data, int cipher_size,
                            gnutls_datum_t * plain,
index 5eb47b4bdffe3b29fd1b73c9eb8f244e9d1812b5..2611b5af541491c2593fed6fdfb3fc1ef6d4dde3 100644 (file)
@@ -53,8 +53,6 @@ typedef int ssize_t;
 #endif
 #include <time.h>
 
-#include <nettle/memxor.h>
-
 #include "attribute.h"
 
 #define ENABLE_ALIGN16
index 8f7972a7d523ecf830580e5bf546c9431ab12734..5ab6cb4ce5a98f8079344dc103dc13489fd26930 100644 (file)
@@ -257,13 +257,11 @@ tls12_rehandshake_cert_LDADD = $(CMOCKA_LDADD)
 
 gnutls_record_overhead_CPPFLAGS = $(AM_CPPFLAGS) \
        -I$(top_srcdir)/gl      \
-       -I$(top_builddir)/gl    \
-       $(NETTLE_CFLAGS)
+       -I$(top_builddir)/gl
 
 ip_utils_CPPFLAGS = $(AM_CPPFLAGS) \
        -I$(top_srcdir)/gl      \
-       -I$(top_builddir)/gl    \
-       $(NETTLE_CFLAGS)
+       -I$(top_builddir)/gl
 
 endif
 
@@ -439,38 +437,31 @@ endif
 
 gc_CPPFLAGS = $(AM_CPPFLAGS) \
        -I$(top_srcdir)/gl      \
-       -I$(top_builddir)/gl    \
-       $(NETTLE_CFLAGS)
+       -I$(top_builddir)/gl
 
 mpi_CPPFLAGS = $(AM_CPPFLAGS) \
        -I$(top_srcdir)/gl      \
-       -I$(top_builddir)/gl    \
-       $(NETTLE_CFLAGS)
+       -I$(top_builddir)/gl
 
 atfork_CPPFLAGS = $(AM_CPPFLAGS) \
        -I$(top_srcdir)/gl      \
-       -I$(top_builddir)/gl    \
-       $(NETTLE_CFLAGS)
+       -I$(top_builddir)/gl
 
 pkcs12_s2k_CPPFLAGS = $(AM_CPPFLAGS) \
        -I$(top_srcdir)/gl      \
-       -I$(top_builddir)/gl    \
-       $(NETTLE_CFLAGS)
+       -I$(top_builddir)/gl
 
 name_constraints_merge_CPPFLAGS = $(AM_CPPFLAGS) \
        -I$(top_srcdir)/gl      \
-       -I$(top_builddir)/gl    \
-       $(NETTLE_CFLAGS)
+       -I$(top_builddir)/gl
 
 murmur3_CPPFLAGS = $(AM_CPPFLAGS) \
        -I$(top_srcdir)/gl      \
-       -I$(top_builddir)/gl    \
-       $(NETTLE_CFLAGS)
+       -I$(top_builddir)/gl
 
 tls13_anti_replay_CPPFLAGS = $(AM_CPPFLAGS) \
        -I$(top_srcdir)/gl      \
-       -I$(top_builddir)/gl    \
-       $(NETTLE_CFLAGS)
+       -I$(top_builddir)/gl
 
 iov_CPPFLAGS = $(AM_CPPFLAGS) \
        -I$(top_srcdir)/gl      \