021091d55f
- resume reading from /dev/urandom when interrupted by a signal (bsc#995075) * add openssl-randfile_fread_interrupt.patch - add FIPS changes from SP2: - fix problems with locking in FIPS mode (bsc#992120) * duplicates: bsc#991877, bsc#991193, bsc#990392, bsc#990428 and bsc#990207 * bring back openssl-fipslocking.patch - drop openssl-fips_RSA_compute_d_with_lcm.patch (upstream) (bsc#984323) - don't check for /etc/system-fips (bsc#982268) * add openssl-fips-dont_run_FIPS_module_installed.patch - refresh openssl-fips-rsagen-d-bits.patch (forwarded request 431508 from vitezslav_cizek) OBS-URL: https://build.opensuse.org/request/show/433063 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openssl?expand=0&rev=134
17 lines
585 B
Diff
17 lines
585 B
Diff
Index: openssl-1.0.2j/crypto/rand/randfile.c
|
|
===================================================================
|
|
--- openssl-1.0.2j.orig/crypto/rand/randfile.c 2016-09-27 13:52:29.265425064 +0200
|
|
+++ openssl-1.0.2j/crypto/rand/randfile.c 2016-09-27 13:53:34.162468100 +0200
|
|
@@ -205,6 +205,11 @@ int RAND_load_file(const char *file, lon
|
|
else
|
|
n = BUFSIZE;
|
|
i = fread(buf, 1, n, in);
|
|
+ if (i <= 0 && ferror(in) && errno == EINTR) {
|
|
+ clearerr(in);
|
|
+ continue;
|
|
+ }
|
|
+
|
|
if (i <= 0)
|
|
break;
|
|
#ifdef PURIFY
|