Mercurial > hg > orthanc
comparison OrthancFramework/Resources/Patches/openssl-3.1.0.patch @ 5228:993a6b23f032
upgraded to openssl 3.1.0
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 04 Apr 2023 09:46:09 +0200 |
parents | |
children | bd25d1c33362 |
comparison
equal
deleted
inserted
replaced
5225:5874e5dd9a38 | 5228:993a6b23f032 |
---|---|
1 diff -urEb openssl-3.1.0.orig/providers/implementations/rands/seeding/rand_unix.c openssl-3.1.0/providers/implementations/rands/seeding/rand_unix.c | |
2 --- openssl-3.1.0.orig/providers/implementations/rands/seeding/rand_unix.c 2023-04-04 09:23:30.574295136 +0200 | |
3 +++ openssl-3.1.0/providers/implementations/rands/seeding/rand_unix.c 2023-04-04 09:23:57.766784026 +0200 | |
4 @@ -452,6 +452,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 @@ -462,6 +463,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) { |