diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-05 10:08:23 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-05 10:08:23 +0900 |
commit | c0c4ebc8462f91e7cf41e7404f71dca434b8494e (patch) | |
tree | 764f42c7258a7f83c64a1e75669b5694072cee20 /lib/sha1.h | |
parent | dfd19f19c019e044f97e46081a6960614c0cf3f9 (diff) | |
download | wget-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.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |