* lib/af_alg.c (afalg_stream): Handle the case where we've
successfully written data to the kernel in the read/write loop,
but the kernel doesn't respond with the hash.
* tests/test-wcwidth.c (main): If the wchar-single module is present,
skip the tests in the C locale.
+2018-06-24 Pádraig Brady <P@draigBrady.com>
+
+ af_alg: fix error handling when hash not returned
+ * lib/af_alg.c (afalg_stream): Handle the case where we've
+ successfully written data to the kernel in the read/write loop,
+ but the kernel doesn't respond with the hash.
+
2018-06-23 Pádraig Brady <P@draigBrady.com>
crypto: mention --without-linux-crypto in --with-openssl --help
}
if (result == 0 && read (ofd, resblock, hashlen) != hashlen)
- result = -EAFNOSUPPORT;
+ {
+ if (nseek == 0 || fseeko (stream, nseek, SEEK_CUR) == 0)
+ result = -EAFNOSUPPORT;
+ else
+ result = -EIO;
+ }
close (ofd);
return result;
}