mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-05-13 15:13:36 +00:00
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.
This commit is contained in:
16
ChangeLog
16
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>
|
||||
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "arcfour.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "arcfour.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "arctwo.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "arctwo.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -19,11 +19,11 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "des.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "des.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "gc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "gc.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "gc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "gc.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "gc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "gc.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "gc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "gc.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "gc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "gc.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "gc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "gc.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "gc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "gc.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "gc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "gc.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "gc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "gc.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "gc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "gc.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "gc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "gc.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "gc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "gc.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "gc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "gc.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "gc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "gc.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -18,9 +18,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "hmac.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "hmac.h"
|
||||
|
||||
/* Test vectors from RFC 2104. */
|
||||
|
||||
|
||||
@@ -18,9 +18,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "hmac.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "hmac.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -18,9 +18,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "hmac.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "hmac.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -18,9 +18,10 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "hmac.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "hmac.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "md2.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "md2.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -19,11 +19,11 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "md4.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "md4.h"
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -19,11 +19,11 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "md5.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "md5.h"
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
|
||||
#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[])
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "sha1.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "sha1.h"
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "sm3.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "sm3.h"
|
||||
|
||||
static int
|
||||
test (const char *in, const char *out)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user