diff options
| -rw-r--r-- | patches/speed.c.patch | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/patches/speed.c.patch b/patches/speed.c.patch index b649e8e..8e79f5c 100644 --- a/patches/speed.c.patch +++ b/patches/speed.c.patch | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | --- apps/openssl/speed.c.orig 2026-03-18 18:00:10 | 1 | --- apps/openssl/speed.c.orig 2026-04-12 11:09:28 |
| 2 | +++ apps/openssl/speed.c 2026-03-18 18:00:28 | 2 | +++ apps/openssl/speed.c 2026-04-12 11:11:18 |
| 3 | @@ -156,7 +156,16 @@ static void print_result(int alg, int run_no, int coun | 3 | @@ -156,7 +156,16 @@ static void print_result(int alg, int run_no, int coun |
| 4 | pkey_print_message(const char *str, const char *str2, | 4 | pkey_print_message(const char *str, const char *str2, |
| 5 | int bits, int sec); | 5 | int bits, int sec); |
| @@ -65,7 +65,7 @@ | |||
| 65 | 65 | ||
| 66 | if (j == 0) { | 66 | if (j == 0) { |
| 67 | for (i = 0; i < ALGOR_NUM; i++) { | 67 | for (i = 0; i < ALGOR_NUM; i++) { |
| 68 | @@ -1607,11 +1624,13 @@ speed_main(int argc, char **argv) | 68 | @@ -1607,11 +1624,15 @@ speed_main(int argc, char **argv) |
| 69 | #define COND (run && count<0x7fffffff) | 69 | #define COND (run && count<0x7fffffff) |
| 70 | #define COUNT(d) (count) | 70 | #define COUNT(d) (count) |
| 71 | 71 | ||
| @@ -75,11 +75,13 @@ | |||
| 75 | sa.sa_flags = SA_RESTART; | 75 | sa.sa_flags = SA_RESTART; |
| 76 | sa.sa_handler = sig_done; | 76 | sa.sa_handler = sig_done; |
| 77 | sigaction(SIGALRM, &sa, NULL); | 77 | sigaction(SIGALRM, &sa, NULL); |
| 78 | +#else | ||
| 79 | + signal(SIGALRM, sig_done); | ||
| 78 | +#endif | 80 | +#endif |
| 79 | 81 | ||
| 80 | #ifndef OPENSSL_NO_MD4 | 82 | #ifndef OPENSSL_NO_MD4 |
| 81 | if (doit[D_MD4]) { | 83 | if (doit[D_MD4]) { |
| 82 | @@ -2513,7 +2532,9 @@ speed_main(int argc, char **argv) | 84 | @@ -2513,7 +2534,9 @@ speed_main(int argc, char **argv) |
| 83 | free(ss); | 85 | free(ss); |
| 84 | } | 86 | } |
| 85 | 87 | ||
| @@ -89,7 +91,7 @@ | |||
| 89 | if (!mr) { | 91 | if (!mr) { |
| 90 | fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_VERSION)); | 92 | fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_VERSION)); |
| 91 | fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_BUILT_ON)); | 93 | fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_BUILT_ON)); |
| 92 | @@ -2695,11 +2716,15 @@ print_result(int alg, int run_no, int count, double ti | 94 | @@ -2695,11 +2718,15 @@ print_result(int alg, int run_no, int count, double ti |
| 93 | static void | 95 | static void |
| 94 | print_result(int alg, int run_no, int count, double time_used) | 96 | print_result(int alg, int run_no, int count, double time_used) |
| 95 | { | 97 | { |
| @@ -105,7 +107,7 @@ | |||
| 105 | static char * | 107 | static char * |
| 106 | sstrsep(char **string, const char *delim) | 108 | sstrsep(char **string, const char *delim) |
| 107 | { | 109 | { |
| 108 | @@ -2900,5 +2925,6 @@ do_multi(int multi) | 110 | @@ -2900,5 +2927,6 @@ do_multi(int multi) |
| 109 | free(fds); | 111 | free(fds); |
| 110 | return 1; | 112 | return 1; |
| 111 | } | 113 | } |
