diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/af_alg.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,10 @@ 2018-05-05 Bruno Haible <bruno@clisp.org> + af_alg: Improve comments. + * lib/af_alg.c (afalg_stream): Improve comment about kernel bug. + +2018-05-05 Bruno Haible <bruno@clisp.org> + af_alg: New module. * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'. * lib/af_alg.c: Include "af_alg.h" before the other header files. diff --git a/lib/af_alg.c b/lib/af_alg.c index dc3ac6aa15..3b35e019b4 100644 --- a/lib/af_alg.c +++ b/lib/af_alg.c @@ -96,8 +96,8 @@ afalg_stream (FILE *stream, const char *alg, void *resblock, ssize_t hashlen) ret = -EIO; goto out_ofd; } - /* On Linux 4.4.0 at least, the value for an empty stream is wrong - (all zeroes). */ + /* On Linux < 4.9, the value for an empty stream is wrong (all zeroes). + See <https://patchwork.kernel.org/patch/9434741/>. */ if (!non_empty) { ret = -EAFNOSUPPORT; |