Remove unneeded #includes.

This commit is contained in:
Dag-Erling Smørgrav 2016-09-17 16:05:31 +02:00
parent d9b6740247
commit e78c0f811b
12 changed files with 6 additions and 20 deletions

View file

@ -32,7 +32,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h>
#include <string.h> #include <string.h>
#include <cryb/endian.h> #include <cryb/endian.h>

View file

@ -33,7 +33,6 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <cryb/aes.h> #include <cryb/aes.h>

View file

@ -31,9 +31,8 @@
#include <sys/types.h> #include <sys/types.h>
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h>
#include <string.h>
/* test our own code, not the compiler's */ /* test our own code, not the compiler's */
#undef HAVE___BUILTIN_BSWAP16 #undef HAVE___BUILTIN_BSWAP16

View file

@ -33,7 +33,6 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <cryb/endian.h> #include <cryb/endian.h>
#include <cryb/hash.h> #include <cryb/hash.h>

View file

@ -32,7 +32,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h>
#include <string.h> #include <string.h>
#include <cryb/rc4.h> #include <cryb/rc4.h>

View file

@ -33,10 +33,7 @@
#include <errno.h> #include <errno.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <cryb/rfc3986.h> #include <cryb/rfc3986.h>

View file

@ -34,10 +34,7 @@
#include <errno.h> #include <errno.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <cryb/rfc4648.h> #include <cryb/rfc4648.h>

View file

@ -178,7 +178,7 @@ t_sha224_short_updates(char **desc CRYB_UNUSED, void *arg)
sha224_update(&ctx, vector->msg + i, 5); sha224_update(&ctx, vector->msg + i, 5);
sha224_update(&ctx, vector->msg + i, len - i); sha224_update(&ctx, vector->msg + i, len - i);
sha224_final(&ctx, digest); sha224_final(&ctx, digest);
return (memcmp(digest, vector->digest, SHA224_DIGEST_LEN) == 0); return (t_compare_mem(digest, vector->digest, SHA224_DIGEST_LEN));
} }
#endif #endif

View file

@ -189,7 +189,7 @@ t_sha384_short_updates(char **desc CRYB_UNUSED, void *arg)
sha384_update(&ctx, vector->msg + i, 5); sha384_update(&ctx, vector->msg + i, 5);
sha384_update(&ctx, vector->msg + i, len - i); sha384_update(&ctx, vector->msg + i, len - i);
sha384_final(&ctx, digest); sha384_final(&ctx, digest);
return (memcmp(digest, vector->digest, SHA384_DIGEST_LEN) == 0); return (t_compare_mem(digest, vector->digest, SHA384_DIGEST_LEN));
} }
#endif #endif

View file

@ -31,9 +31,8 @@
#include <sys/types.h> #include <sys/types.h>
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <cryb/string.h> #include <cryb/string.h>

View file

@ -31,9 +31,8 @@
#include <sys/types.h> #include <sys/types.h>
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h>
#include <string.h>
#undef HAVE_STRLCMP #undef HAVE_STRLCMP
#include <cryb/strlcmp.h> #include <cryb/strlcmp.h>

View file

@ -31,9 +31,8 @@
#include <sys/types.h> #include <sys/types.h>
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <wchar.h> #include <wchar.h>
#include <cryb/wstring.h> #include <cryb/wstring.h>