comparison OrthancFramework/Resources/Patches/openssl-3.1.4.patch @ 5502:834be222605b

upgraded to OpenSSL 3.1.4
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 24 Jan 2024 17:16:06 +0100
parents
children
comparison
equal deleted inserted replaced
5501:8b96d1d17831 5502:834be222605b
1 diff -urEb openssl-3.1.4.orig/crypto/riscvcap.c openssl-3.1.4/crypto/riscvcap.c
2 --- openssl-3.1.4.orig/crypto/riscvcap.c 2024-01-24 16:58:48.308108757 +0100
3 +++ openssl-3.1.4/crypto/riscvcap.c 2024-01-24 17:01:04.114914015 +0100
4 @@ -37,7 +37,8 @@
5
6 static void strtoupper(char *str)
7 {
8 - for (char *x = str; *x; ++x)
9 + char* x;
10 + for (x = str; *x; ++x)
11 *x = toupper(*x);
12 }
13
14 @@ -51,12 +52,13 @@
15 {
16 char envstrupper[BUFLEN];
17 char buf[BUFLEN];
18 + size_t i;
19
20 /* Convert env str to all uppercase */
21 OPENSSL_strlcpy(envstrupper, envstr, sizeof(envstrupper));
22 strtoupper(envstrupper);
23
24 - for (size_t i = 0; i < kRISCVNumCaps; ++i) {
25 + for (i = 0; i < kRISCVNumCaps; ++i) {
26 /* Prefix capability with underscore in preparation for search */
27 BIO_snprintf(buf, BUFLEN, "_%s", RISCV_capabilities[i].name);
28 if (strstr(envstrupper, buf) != NULL) {
29 diff -urEb openssl-3.1.4.orig/providers/implementations/rands/seeding/rand_unix.c openssl-3.1.4/providers/implementations/rands/seeding/rand_unix.c
30 --- openssl-3.1.4.orig/providers/implementations/rands/seeding/rand_unix.c 2024-01-24 16:58:48.332108547 +0100
31 +++ openssl-3.1.4/providers/implementations/rands/seeding/rand_unix.c 2024-01-24 17:01:30.182683539 +0100
32 @@ -452,6 +452,7 @@
33 * system call and this should always succeed which renders
34 * this alternative but essentially identical source moot.
35 */
36 +#if !defined(__LSB_VERSION__) // "syscall()" is not available in LSB
37 if (uname(&un) == 0) {
38 kernel[0] = atoi(un.release);
39 p = strchr(un.release, '.');
40 @@ -462,6 +463,7 @@
41 return 0;
42 }
43 }
44 +#endif
45 /* Open /dev/random and wait for it to be readable */
46 if ((fd = open(DEVRANDOM_WAIT, O_RDONLY)) != -1) {
47 if (DEVRANDM_WAIT_USE_SELECT && fd < FD_SETSIZE) {