summaryrefslogtreecommitdiff
path: root/modules/crypto/af_alg
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-05-09 18:07:29 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-05-09 18:08:58 -0700
commitcb17397cd405b533f8106064324ce52278f94a7a (patch)
tree9072276178b1b0752ec24298b006cbe0072b48ad /modules/crypto/af_alg
parenta03d9294699894f9a0c1406458917eebfae533e8 (diff)
downloadgnulib-cb17397cd405b533f8106064324ce52278f94a7a.tar.gz
af_alg: recover better from crypto failures
* lib/af_alg.c (afalg_stream): Recover from crypto failures if the input stream is seekable, by repositioning the stream back to where it was, possibly by just calling sendfile with an offset arg. This lets us return -EAFNOSUPPORT instead of -EIO in some cases, which lets our callers try again with user-mode code. * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello instead of on fflush and lseek.
Diffstat (limited to 'modules/crypto/af_alg')
-rw-r--r--modules/crypto/af_alg4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/crypto/af_alg b/modules/crypto/af_alg
index 0c498e05c8..519bab7bfc 100644
--- a/modules/crypto/af_alg
+++ b/modules/crypto/af_alg
@@ -8,8 +8,8 @@ lib/sys-limits.h
m4/af_alg.m4
Depends-on:
-fflush [test $USE_AF_ALG = 1]
-lseek [test $USE_AF_ALG = 1]
+fseeko [test $USE_AF_ALG = 1]
+ftello [test $USE_AF_ALG = 1]
sys_socket
sys_stat