Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OrthancFramework/Resources/Patches/openssl-3.1.0.patch Tue Apr 04 09:46:09 2023 +0200 @@ -0,0 +1,19 @@ +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 +--- openssl-3.1.0.orig/providers/implementations/rands/seeding/rand_unix.c 2023-04-04 09:23:30.574295136 +0200 ++++ openssl-3.1.0/providers/implementations/rands/seeding/rand_unix.c 2023-04-04 09:23:57.766784026 +0200 +@@ -452,6 +452,7 @@ + * system call and this should always succeed which renders + * this alternative but essentially identical source moot. + */ ++#if !defined(__LSB_VERSION__) // "syscall()" is not available in LSB + if (uname(&un) == 0) { + kernel[0] = atoi(un.release); + p = strchr(un.release, '.'); +@@ -462,6 +463,7 @@ + return 0; + } + } ++#endif + /* Open /dev/random and wait for it to be readable */ + if ((fd = open(DEVRANDOM_WAIT, O_RDONLY)) != -1) { + if (DEVRANDM_WAIT_USE_SELECT && fd < FD_SETSIZE) {