summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2015-12-18 12:01:37 +0100
committerNiels Möller <nisse@lysator.liu.se>2015-12-18 12:01:37 +0100
commitd78467e14f59293b3a9e2df212613114ec4abd16 (patch)
tree7d8a646101a72386147dec370a380cca11d2768f
parente1f2fa297336b2eafe2f37cfd7e33cd6a00ff130 (diff)
downloadnettle-d78467e14f59293b3a9e2df212613114ec4abd16.tar.gz
Fixes to testutils.h includes. Include version.h.
-rw-r--r--ChangeLog5
-rw-r--r--testsuite/testutils.h7
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 942f6cb1..852af17a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2015-12-18 Niels Möller <nisse@lysator.liu.se>
+ * testsuite/testutils.h: Fix include order, system headers before
+ nettle headers. Always include version.h, needed by
+ version-test.c. It was included indirectly via bignum.h, but only
+ if configured with publickey support.
+
* configure.ac (IF_DLOPEN_TEST): Fixed shell conditional.
* testsuite/ecc-mod-test.c (test_main): Handle random seeding if
diff --git a/testsuite/testutils.h b/testsuite/testutils.h
index 405f89f6..58786b65 100644
--- a/testsuite/testutils.h
+++ b/testsuite/testutils.h
@@ -1,17 +1,20 @@
#ifndef NETTLE_TESTUTILS_H_INCLUDED
#define NETTLE_TESTUTILS_H_INCLUDED
+/* config.h should usually be first in each .c file. This is an
+ exception, include it here to reduce clutter in the test cases. */
#if HAVE_CONFIG_H
# include "config.h"
#endif
-#include "nettle-types.h"
-
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include "nettle-types.h"
+#include "version.h"
+
#if WITH_HOGWEED
# include "rsa.h"
# include "dsa-compat.h"