summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2015-03-29 10:20:46 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2015-03-29 10:20:54 +0200
commite7271164afb582302b3dcf47023c1947bc09c142 (patch)
tree2faa9ae37d9baa8b8da6498c5749e4d49564dd09
parent053ae65403216acdb0a4e78b25ad66ee9f444f02 (diff)
downloadgnutls-e7271164afb582302b3dcf47023c1947bc09c142.tar.gz
made ciphersuites.c more self-contained to be handled by test-ciphersuites.sh
-rw-r--r--lib/algorithms/ciphersuites.c1
-rwxr-xr-xtests/suite/ciphersuite/scan-gnutls.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/algorithms/ciphersuites.c b/lib/algorithms/ciphersuites.c
index 2463c3c1a1..4f2cbff25c 100644
--- a/lib/algorithms/ciphersuites.c
+++ b/lib/algorithms/ciphersuites.c
@@ -20,6 +20,7 @@
*
*/
+#include <config.h>
#include <gnutls_int.h>
#include <algorithms.h>
#include <gnutls_errors.h>
diff --git a/tests/suite/ciphersuite/scan-gnutls.sh b/tests/suite/ciphersuite/scan-gnutls.sh
index 7d5ed9ef78..abcad2364e 100755
--- a/tests/suite/ciphersuite/scan-gnutls.sh
+++ b/tests/suite/ciphersuite/scan-gnutls.sh
@@ -3,7 +3,7 @@
echo 'var gnutls_ciphersuites = {'
-cd ../../../lib/algorithms/ && gcc -E ciphersuites.c -I.. -DHAVE_LIBNETTLE -I../../gl -DENABLE_DHE -DENABLE_ECDHE -DENABLE_PSK -DENABLE_ANON -DENABLE_SRP \
+cd ../../../lib/algorithms/ && gcc -E ciphersuites.c -I../../ -I../../gl/ -I.. -DHAVE_LIBNETTLE -DENABLE_DHE -DENABLE_ECDHE -DENABLE_PSK -DENABLE_ANON -DENABLE_SRP \
| awk '/^static const gnutls_cipher_suite_entry cs_algorithms/, /;/ { print; }' \
| grep '{' | head -n-1 | tail -n+2 \
| sed -r -e 's#\{ *0x(..), *0x(..) *\}#0x\1\2#;s# *\{ *"#"#;s#\}##;s#, +# #g' \