comparison OrthancFramework/Resources/Patches/openssl-1.1.1k.patch @ 4908:f4a41cc17ac6

re-added missing patches for OpenSSL 1.1.1
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Feb 2022 10:28:08 +0100
parents 0524d6e93672
children
comparison
equal deleted inserted replaced
4905:b5b693465295 4908:f4a41cc17ac6
1 diff -urEb openssl-1.1.1k.orig/crypto/rand/rand_unix.c openssl-1.1.1k/crypto/rand/rand_unix.c
2 --- openssl-1.1.1k.orig/crypto/rand/rand_unix.c 2021-04-21 11:33:05.241258372 +0200
3 +++ openssl-1.1.1k/crypto/rand/rand_unix.c 2021-04-21 11:34:48.705287133 +0200
4 @@ -455,6 +455,7 @@
5 * system call and this should always succeed which renders
6 * this alternative but essentially identical source moot.
7 */
8 +#if !defined(__LSB_VERSION__) // "syscall()" is not available in LSB
9 if (uname(&un) == 0) {
10 kernel[0] = atoi(un.release);
11 p = strchr(un.release, '.');
12 @@ -465,6 +466,7 @@
13 return 0;
14 }
15 }
16 +#endif
17 /* Open /dev/random and wait for it to be readable */
18 if ((fd = open(DEVRANDOM_WAIT, O_RDONLY)) != -1) {
19 if (DEVRANDM_WAIT_USE_SELECT && fd < FD_SETSIZE) {