summaryrefslogtreecommitdiff
path: root/lib/sha1.h
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-03-05 10:08:23 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-03-05 10:08:23 +0900
commitc0c4ebc8462f91e7cf41e7404f71dca434b8494e (patch)
tree764f42c7258a7f83c64a1e75669b5694072cee20 /lib/sha1.h
parentdfd19f19c019e044f97e46081a6960614c0cf3f9 (diff)
downloadwget-c0c4ebc8462f91e7cf41e7404f71dca434b8494e.tar.gz
wget-c0c4ebc8462f91e7cf41e7404f71dca434b8494e.tar.bz2
wget-c0c4ebc8462f91e7cf41e7404f71dca434b8494e.zip
Imported Upstream version 1.20upstream/1.20
Diffstat (limited to 'lib/sha1.h')
-rw-r--r--lib/sha1.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sha1.h b/lib/sha1.h
index b1db15d..9419750 100644
--- a/lib/sha1.h
+++ b/lib/sha1.h
@@ -87,8 +87,11 @@ extern void *sha1_read_ctx (const struct sha1_ctx *ctx, void *resbuf);
extern void *sha1_buffer (const char *buffer, size_t len, void *resblock);
# endif
-/* Compute SHA1 message digest for bytes read from STREAM. The
- resulting message digest number will be written into the 20 bytes
+/* Compute SHA1 message digest for bytes read from STREAM.
+ STREAM is an open file stream. Regular files are handled more efficiently.
+ The contents of STREAM from its current position to its end will be read.
+ The case that the last operation on STREAM was an 'ungetc' is not supported.
+ The resulting message digest number will be written into the 20 bytes
beginning at RESBLOCK. */
extern int sha1_stream (FILE *stream, void *resblock);