X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fsha1.h;h=7a3b3129dccf645fe24d8aec07576277d72b6438;hb=d33bda72d5d980aa4de9739ed5b55b424093e8ac;hp=6a3406a8e443fc4862ce7afc5c2351b17e0cd3ec;hpb=276f9f9f9658f4a8bafd6216db46760abe8c848d;p=wimlib diff --git a/src/sha1.h b/src/sha1.h index 6a3406a8..7a3b3129 100644 --- a/src/sha1.h +++ b/src/sha1.h @@ -4,7 +4,7 @@ #include "config.h" #include #include -#include "string.h" +#include #include "util.h" #define SHA1_HASH_SIZE 20 @@ -37,9 +37,9 @@ hashes_cmp(const u8 h1[SHA1_HASH_SIZE], } static inline void -print_hash(const u8 hash[SHA1_HASH_SIZE]) +print_hash(const u8 hash[SHA1_HASH_SIZE], FILE *out) { - print_byte_field(hash, SHA1_HASH_SIZE); + print_byte_field(hash, SHA1_HASH_SIZE, out); } static inline bool @@ -93,7 +93,4 @@ sha1_final(u8 hash[SHA1_HASH_SIZE], SHA_CTX *ctx); #endif /* !WITH_LIBCRYPTO */ -extern int -sha1sum(const tchar *filename, u8 hash[SHA1_HASH_SIZE]); - #endif /* _WIMLIB_SHA1_H */