]> Savannah Git Hosting - gnulib.git/commit
af_alg: Fix bug with streams that are not at position 0.
authorBruno Haible <bruno@clisp.org>
Sun, 6 May 2018 11:30:24 +0000 (13:30 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 6 May 2018 11:30:24 +0000 (13:30 +0200)
commit22d459bb708adc2651f47e6ad877e4848c5319bd
treeff94bba8f3c803315991e37114bcdf4bae09d2f5
parentc24c54ae211f0b482693394f71970b182120f2ef
af_alg: Fix bug with streams that are not at position 0.

* lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
assume that the stream is positioned at position 0.
* lib/af_alg.h (afalg_stream): Mention restriction regarding the state
of the stream.
* lib/md5.h (md5_stream): Likewise.
* lib/sha1.h (sha1_stream): Likewise.
* lib/sha256.h (sha256_stream, sha224_stream): Likewise.
* lib/sha512.h (sha512_stream, sha384_stream): Likewise.
* modules/crypto/af_alg (Depends-on): Add fflush, lseek.
ChangeLog
lib/af_alg.c
lib/af_alg.h
lib/md5.h
lib/sha1.h
lib/sha256.h
lib/sha512.h
modules/crypto/af_alg