]> Savannah Git Hosting - gnulib.git/commit
af_alg: recover better from crypto failures
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 May 2018 01:07:29 +0000 (18:07 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 May 2018 01:08:58 +0000 (18:08 -0700)
commitcb17397cd405b533f8106064324ce52278f94a7a
tree9072276178b1b0752ec24298b006cbe0072b48ad
parenta03d9294699894f9a0c1406458917eebfae533e8
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.
ChangeLog
lib/af_alg.c
lib/af_alg.h
modules/crypto/af_alg