]> Savannah Git Hosting - gnulib.git/commitdiff
crypto/*: Verify that the header file is self-contained.
authorBruno Haible <bruno@clisp.org>
Sun, 29 Oct 2017 08:37:12 +0000 (09:37 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 29 Oct 2017 08:37:12 +0000 (09:37 +0100)
* tests/test-gc-*.c: Include the module's header file immediately after
<config.h>.
* tests/test-hmac-*.c: Likewise.
* tests/test-arcfour.c: Likewise.
* tests/test-arctwo.c: Likewise.
* tests/test-des.c: Likewise.
* tests/test-md2.c: Likewise.
* tests/test-md4.c: Likewise.
* tests/test-md5.c: Likewise.
* tests/test-rijndael.c: Likewise.
* tests/test-sha1.c: Likewise.
* tests/test-sm3.c: Likewise.

28 files changed:
ChangeLog
tests/test-arcfour.c
tests/test-arctwo.c
tests/test-des.c
tests/test-gc-arcfour.c
tests/test-gc-arctwo.c
tests/test-gc-des.c
tests/test-gc-hmac-md5.c
tests/test-gc-hmac-sha1.c
tests/test-gc-hmac-sha256.c
tests/test-gc-hmac-sha512.c
tests/test-gc-md2.c
tests/test-gc-md4.c
tests/test-gc-md5.c
tests/test-gc-rijndael.c
tests/test-gc-sha1.c
tests/test-gc-sm3.c
tests/test-gc.c
tests/test-hmac-md5.c
tests/test-hmac-sha1.c
tests/test-hmac-sha256.c
tests/test-hmac-sha512.c
tests/test-md2.c
tests/test-md4.c
tests/test-md5.c
tests/test-rijndael.c
tests/test-sha1.c
tests/test-sm3.c

index e342dd2a3433c459ffb56a806f9dfaa3387c4205..a07ef22c3b953f97f7860a56e00f83a1f2de3657 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2017-10-29  Bruno Haible  <bruno@clisp.org>
+
+       crypto/*: Verify that the header file is self-contained.
+       * tests/test-gc-*.c: Include the module's header file immediately after
+       <config.h>.
+       * tests/test-hmac-*.c: Likewise.
+       * tests/test-arcfour.c: Likewise.
+       * tests/test-arctwo.c: Likewise.
+       * tests/test-des.c: Likewise.
+       * tests/test-md2.c: Likewise.
+       * tests/test-md4.c: Likewise.
+       * tests/test-md5.c: Likewise.
+       * tests/test-rijndael.c: Likewise.
+       * tests/test-sha1.c: Likewise.
+       * tests/test-sm3.c: Likewise.
+
 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
             Bruno Haible  <bruno@clisp.org>
 
index 75f979de40c76633870b621b1d2eae5737b50257..101094aec2c0daaeaf9ac982a6a95da4f4118faa 100644 (file)
 
 #include <config.h>
 
+#include "arcfour.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "arcfour.h"
 
 int
 main (int argc, char *argv[])
index d01ce3a5c49af8cc60290a1e1469eabdd5b48a3e..376ec867a5cab95470f73cff4133c1a3c1dfec5a 100644 (file)
 
 #include <config.h>
 
+#include "arctwo.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "arctwo.h"
 
 int
 main (int argc, char *argv[])
index 4fe2958f90e2ea24eb60edfa010bfb90b6244883..666e466efe2de3aba2208d963426d014f857c387 100644 (file)
 
 #include <config.h>
 
+#include "des.h"
+
 #include <stdio.h>
 #include <string.h>
 
-#include "des.h"
-
 int
 main (int argc, char *argv[])
 {
index 75a5712bdde6411a5ceb19842221d2f8f0e5c4de..0900a2de1fc91b588aff4334bb1deec52f81b1a2 100644 (file)
 
 #include <config.h>
 
+#include "gc.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "gc.h"
 
 int
 main (int argc, char *argv[])
index f41d107017140388cd366f7591aa646952e2bd34..9ad27e14b43d3548b7d46b03c8282373b9e05df9 100644 (file)
 
 #include <config.h>
 
+#include "gc.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "gc.h"
 
 int
 main (int argc, char *argv[])
index 9c49f936680c5f6a52ad20db820e76b2cd00306e..f6d302c3e890fe1f0c68c64784feb93f0011255a 100644 (file)
 
 #include <config.h>
 
+#include "gc.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "gc.h"
 
 int
 main (int argc, char *argv[])
index 5b0371382d4a07115161e50d067971e7faf1cca0..71b0cde203070ffda14fbb6c8ef817269be52b63 100644 (file)
 
 #include <config.h>
 
+#include "gc.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "gc.h"
 
 int
 main (int argc, char *argv[])
index 16e0d10e5f15fdde4152f8495dd85137846e2e57..a4a47cc9d76355584ed14c518d6bb27dd01ef146 100644 (file)
 
 #include <config.h>
 
+#include "gc.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "gc.h"
 
 int
 main (int argc, char *argv[])
index e61c50e52acc8b33a1b7f071c6d49d4d1bed7fa7..86d9f641ab259eacf330558a881b18ec5b1d6db8 100644 (file)
 
 #include <config.h>
 
+#include "gc.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "gc.h"
 
 int
 main (int argc, char *argv[])
index 5121233c7436073f23e53a1ac43c1dd42e6c1917..97624f3942ce548a5fb5bd092cb5987bdeb522dd 100644 (file)
 
 #include <config.h>
 
+#include "gc.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "gc.h"
 
 int
 main (int argc, char *argv[])
index 3dd9c3da3fbe90c147b44941f6f65a36b26da517..9b9f9a1ad0521e8978dbe1e963de950bb306cb84 100644 (file)
 
 #include <config.h>
 
+#include "gc.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "gc.h"
 
 int
 main (int argc, char *argv[])
index 5830b30061172e75bf0c36c822ac80fdc74a4d0c..51bd8a3ccb2ec5a5b1e34d209c9b066c81b02220 100644 (file)
 
 #include <config.h>
 
+#include "gc.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "gc.h"
 
 int
 main (int argc, char *argv[])
index ca277afd6032a5d1615ed75896c7d72501c7cdd9..66ac94bb6387862f01e50469c5dcc24c2d534c18 100644 (file)
 
 #include <config.h>
 
+#include "gc.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "gc.h"
 
 int
 main (int argc, char *argv[])
index dc60513ffb03c74e0bbd56574c79eb0925d1281b..2c1796ecb90e0f67b62543e498cb5b0cac72c201 100644 (file)
 
 #include <config.h>
 
+#include "gc.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "gc.h"
 
 int
 main (int argc, char *argv[])
index 75c0e02a1a776c073dcf11516b81429c99420187..2b5b6157b400ad4f730d85fc45a7e560f630a8b8 100644 (file)
 
 #include <config.h>
 
+#include "gc.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "gc.h"
 
 int
 main (int argc, char *argv[])
index 608725d0b256ef58a142d3025d688ab807da1df9..9252224f603b97829123a702f0861dff89174404 100644 (file)
 
 #include <config.h>
 
+#include "gc.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "gc.h"
 
 int
 main (int argc, char *argv[])
index e679a88596953bd7f89c896f264613a7996d41ce..000ba015d509e637e356933ce4e07b23e6db5faa 100644 (file)
 
 #include <config.h>
 
+#include "gc.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "gc.h"
 
 int
 main (int argc, char *argv[])
index 246fcd49512923b24cdc5060092b07ed23ce99bd..55f2c7e3ae8971832fc253b13b4c46d3141be562 100644 (file)
 
 #include <config.h>
 
+#include "hmac.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "hmac.h"
 
 /* Test vectors from RFC 2104. */
 
index 149aa333d8a3bb7fd9d4bc736fc1906edb746ccb..a27bea7bf340a0a85a54ef8f2843ea93a90b30a5 100644 (file)
 
 #include <config.h>
 
+#include "hmac.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "hmac.h"
 
 int
 main (int argc, char *argv[])
index aeaa7cccff6ea4ee25bfea93128c9f4efbe553e8..c0ec4fe6318aba55e60212f7ef04cf0c34d30d57 100644 (file)
 
 #include <config.h>
 
+#include "hmac.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "hmac.h"
 
 int
 main (int argc, char *argv[])
index 88efb4c083554e610cdab4eb79f558e574a696e4..c09620d74727ea5c6516e5fa7e36cf0e1e2df35b 100644 (file)
 
 #include <config.h>
 
+#include "hmac.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "hmac.h"
 
 int
 main (int argc, char *argv[])
index 9cdf4dbf28fa3425ab401bae04867f5b6ef3df81..e874939df819657d15a20e6ef9b994088a32bd26 100644 (file)
 
 #include <config.h>
 
+#include "md2.h"
+
 #include <stdio.h>
 #include <string.h>
 
-#include "md2.h"
-
 int
 main (int argc, char *argv[])
 {
index 67d1ed299232dca4d1767aa2eceeaeccb680bf24..d07872075aed9cdddb4ec38a96955e6685cfa200 100644 (file)
 
 #include <config.h>
 
+#include "md4.h"
+
 #include <stdio.h>
 #include <string.h>
 
-#include "md4.h"
-
 int
 main (int argc, char *argv[])
 {
index 19bb6a3863c248b4fcfadd509d958aa17745a8be..9d2d697bd0fe0c6dbb84428f17812e96f311aebf 100644 (file)
 
 #include <config.h>
 
+#include "md5.h"
+
 #include <stdio.h>
 #include <string.h>
 
-#include "md5.h"
-
 int
 main (void)
 {
index 4f64927a2dff27ab57272b4c5d44e5b91cc43dac..cd95533e77c8ade38fc2097d9ccc255d9ce47d0c 100644 (file)
 
 #include <config.h>
 
+#include "rijndael-api-fst.h"
+
 #include <stdio.h>
 #include <string.h>
-#include "rijndael-api-fst.h"
 
 int
 main (int argc, char *argv[])
index 6f10482f81fc31f0a6ba4d025fd25d253ad0b0b7..4e7b352a581ffd011fca43ae95311659bec68521 100644 (file)
 
 #include <config.h>
 
+#include "sha1.h"
+
 #include <stdio.h>
 #include <string.h>
 
-#include "sha1.h"
-
 int
 main (void)
 {
index 99c19452bc36eed87bacb1e5b21e0e0f90c25ded..179d72bc56f33b9d48bbf6ed7d9d8900f1c80fc9 100644 (file)
 
 #include <config.h>
 
+#include "sm3.h"
+
 #include <stdio.h>
 #include <string.h>
 
-#include "sm3.h"
-
 static int
 test (const char *in, const char *out)
 {