diff options
Diffstat (limited to 'patches')
-rw-r--r-- | patches/aarch64_crypto_arch.h.patch | 16 | ||||
-rw-r--r-- | patches/amd64_crypto_arch.h.patch | 18 | ||||
-rw-r--r-- | patches/crypto_arch.h.patch | 34 | ||||
-rw-r--r-- | patches/modes_local.h.patch | 18 | ||||
-rw-r--r-- | patches/netcat.c.patch | 28 | ||||
-rw-r--r-- | patches/openssl.c.patch | 6 | ||||
-rw-r--r-- | patches/opensslfeatures.h.patch | 11 | ||||
-rw-r--r-- | patches/patch-aarch64-crypto-cpu-caps.c.patch | 39 | ||||
-rw-r--r-- | patches/patch-i386-crypto-cpu-caps.c.patch | 8 | ||||
-rw-r--r-- | patches/speed.c.patch | 26 |
10 files changed, 79 insertions, 125 deletions
diff --git a/patches/aarch64_crypto_arch.h.patch b/patches/aarch64_crypto_arch.h.patch new file mode 100644 index 0000000..e6a8cbf --- /dev/null +++ b/patches/aarch64_crypto_arch.h.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | --- crypto/arch/aarch64/crypto_arch.h.orig Sun Jun 29 03:49:56 2025 | ||
2 | +++ crypto/arch/aarch64/crypto_arch.h Sun Jun 29 04:00:13 2025 | ||
3 | @@ -34,11 +34,13 @@ extern uint64_t crypto_cpu_caps_aarch64; | ||
4 | #define CRYPTO_CPU_CAPS_AARCH64_SHA3 (1ULL << 5) | ||
5 | |||
6 | #ifndef OPENSSL_NO_ASM | ||
7 | +#if 0 | ||
8 | |||
9 | #define HAVE_SHA1_BLOCK_DATA_ORDER | ||
10 | #define HAVE_SHA256_BLOCK_DATA_ORDER | ||
11 | #define HAVE_SHA512_BLOCK_DATA_ORDER | ||
12 | |||
13 | +#endif | ||
14 | #endif | ||
15 | |||
16 | #endif | ||
diff --git a/patches/amd64_crypto_arch.h.patch b/patches/amd64_crypto_arch.h.patch new file mode 100644 index 0000000..b094100 --- /dev/null +++ b/patches/amd64_crypto_arch.h.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | --- crypto/arch/amd64/crypto_arch.h.orig Wed Jul 23 08:15:02 2025 | ||
2 | +++ crypto/arch/amd64/crypto_arch.h Wed Jul 23 08:15:20 2025 | ||
3 | @@ -47,6 +47,7 @@ extern uint64_t crypto_cpu_caps_amd64; | ||
4 | #define HAVE_RC4_INTERNAL | ||
5 | #define HAVE_RC4_SET_KEY_INTERNAL | ||
6 | |||
7 | +#if 0 | ||
8 | #define HAVE_SHA1_BLOCK_DATA_ORDER | ||
9 | #define HAVE_SHA1_BLOCK_GENERIC | ||
10 | |||
11 | @@ -55,6 +56,7 @@ extern uint64_t crypto_cpu_caps_amd64; | ||
12 | |||
13 | #define HAVE_SHA512_BLOCK_DATA_ORDER | ||
14 | #define HAVE_SHA512_BLOCK_GENERIC | ||
15 | +#endif | ||
16 | |||
17 | #endif | ||
18 | |||
diff --git a/patches/crypto_arch.h.patch b/patches/crypto_arch.h.patch deleted file mode 100644 index 6c889e5..0000000 --- a/patches/crypto_arch.h.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | --- crypto/arch/amd64/crypto_arch.h.orig Fri Feb 14 06:00:43 2025 | ||
2 | +++ crypto/arch/amd64/crypto_arch.h Fri Feb 14 06:01:13 2025 | ||
3 | @@ -40,6 +40,7 @@ extern uint64_t crypto_cpu_caps_amd64; | ||
4 | #define HAVE_RC4_INTERNAL | ||
5 | #define HAVE_RC4_SET_KEY_INTERNAL | ||
6 | |||
7 | +#if 0 | ||
8 | #define HAVE_SHA1_BLOCK_DATA_ORDER | ||
9 | #define HAVE_SHA1_BLOCK_GENERIC | ||
10 | |||
11 | @@ -48,6 +49,7 @@ extern uint64_t crypto_cpu_caps_amd64; | ||
12 | |||
13 | #define HAVE_SHA512_BLOCK_DATA_ORDER | ||
14 | #define HAVE_SHA512_BLOCK_GENERIC | ||
15 | +#endif | ||
16 | |||
17 | #endif | ||
18 | |||
19 | --- crypto/arch/aarch64/crypto_arch.h.orig Thu Mar 13 05:42:37 2025 | ||
20 | +++ crypto/arch/aarch64/crypto_arch.h Thu Mar 13 05:47:39 2025 | ||
21 | @@ -33,11 +33,13 @@ | ||
22 | #define CRYPTO_CPU_CAPS_AARCH64_SHA512 (1ULL << 4) | ||
23 | #define CRYPTO_CPU_CAPS_AARCH64_SHA3 (1ULL << 5) | ||
24 | |||
25 | +#if 0 | ||
26 | #ifndef OPENSSL_NO_ASM | ||
27 | |||
28 | #define HAVE_SHA256_BLOCK_DATA_ORDER | ||
29 | #define HAVE_SHA512_BLOCK_DATA_ORDER | ||
30 | |||
31 | +#endif | ||
32 | #endif | ||
33 | |||
34 | #endif | ||
diff --git a/patches/modes_local.h.patch b/patches/modes_local.h.patch deleted file mode 100644 index 1ff799b..0000000 --- a/patches/modes_local.h.patch +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | --- crypto/modes/modes_local.h.orig Sat Jul 8 14:03:53 2023 | ||
2 | +++ crypto/modes/modes_local.h Sat Jul 8 14:10:56 2023 | ||
3 | @@ -45,6 +45,7 @@ | ||
4 | asm ("bswapl %0" \ | ||
5 | : "+r"(ret)); ret; }) | ||
6 | # elif (defined(__arm__) || defined(__arm)) && !defined(__STRICT_ALIGNMENT) | ||
7 | +# if (__ARM_ARCH >= 6) | ||
8 | # define BSWAP8(x) ({ u32 lo=(u64)(x)>>32,hi=(x); \ | ||
9 | asm ("rev %0,%0; rev %1,%1" \ | ||
10 | : "+r"(hi),"+r"(lo)); \ | ||
11 | @@ -53,6 +54,7 @@ | ||
12 | asm ("rev %0,%1" \ | ||
13 | : "=r"(ret) : "r"((u32)(x))); \ | ||
14 | ret; }) | ||
15 | +# endif | ||
16 | # endif | ||
17 | #endif | ||
18 | #endif | ||
diff --git a/patches/netcat.c.patch b/patches/netcat.c.patch index 319aca6..345a170 100644 --- a/patches/netcat.c.patch +++ b/patches/netcat.c.patch | |||
@@ -1,5 +1,5 @@ | |||
1 | --- apps/nc/netcat.c.orig Sat Aug 17 03:21:05 2024 | 1 | --- apps/nc/netcat.c.orig Fri Jun 27 12:39:21 2025 |
2 | +++ apps/nc/netcat.c Sat Aug 17 03:28:50 2024 | 2 | +++ apps/nc/netcat.c Fri Jun 27 12:39:29 2025 |
3 | @@ -93,9 +93,13 @@ int zflag; /* Port Scan Flag */ | 3 | @@ -93,9 +93,13 @@ int zflag; /* Port Scan Flag */ |
4 | int Dflag; /* sodebug */ | 4 | int Dflag; /* sodebug */ |
5 | int Iflag; /* TCP receive buffer size */ | 5 | int Iflag; /* TCP receive buffer size */ |
@@ -14,7 +14,7 @@ | |||
14 | 14 | ||
15 | int usetls; /* use TLS */ | 15 | int usetls; /* use TLS */ |
16 | const char *Cflag; /* Public cert file */ | 16 | const char *Cflag; /* Public cert file */ |
17 | @@ -268,12 +272,14 @@ main(int argc, char *argv[]) | 17 | @@ -271,12 +275,14 @@ main(int argc, char *argv[]) |
18 | case 'u': | 18 | case 'u': |
19 | uflag = 1; | 19 | uflag = 1; |
20 | break; | 20 | break; |
@@ -29,7 +29,7 @@ | |||
29 | case 'v': | 29 | case 'v': |
30 | vflag = 1; | 30 | vflag = 1; |
31 | break; | 31 | break; |
32 | @@ -320,9 +326,11 @@ main(int argc, char *argv[]) | 32 | @@ -323,9 +329,11 @@ main(int argc, char *argv[]) |
33 | case 'o': | 33 | case 'o': |
34 | oflag = optarg; | 34 | oflag = optarg; |
35 | break; | 35 | break; |
@@ -41,7 +41,7 @@ | |||
41 | case 'T': | 41 | case 'T': |
42 | errstr = NULL; | 42 | errstr = NULL; |
43 | errno = 0; | 43 | errno = 0; |
44 | @@ -346,9 +354,11 @@ main(int argc, char *argv[]) | 44 | @@ -349,9 +357,11 @@ main(int argc, char *argv[]) |
45 | argc -= optind; | 45 | argc -= optind; |
46 | argv += optind; | 46 | argv += optind; |
47 | 47 | ||
@@ -53,7 +53,7 @@ | |||
53 | 53 | ||
54 | /* Cruft to make sure options are clean, and used properly. */ | 54 | /* Cruft to make sure options are clean, and used properly. */ |
55 | if (argc == 1 && family == AF_UNIX) { | 55 | if (argc == 1 && family == AF_UNIX) { |
56 | @@ -923,7 +933,10 @@ remote_connect(const char *host, const char *port, str | 56 | @@ -928,7 +938,10 @@ remote_connect(const char *host, const char *port, str |
57 | char *ipaddr) | 57 | char *ipaddr) |
58 | { | 58 | { |
59 | struct addrinfo *res, *res0; | 59 | struct addrinfo *res, *res0; |
@@ -65,7 +65,7 @@ | |||
65 | 65 | ||
66 | if ((error = getaddrinfo(host, port, &hints, &res0))) | 66 | if ((error = getaddrinfo(host, port, &hints, &res0))) |
67 | errx(1, "getaddrinfo for host \"%s\" port %s: %s", host, | 67 | errx(1, "getaddrinfo for host \"%s\" port %s: %s", host, |
68 | @@ -938,8 +951,10 @@ remote_connect(const char *host, const char *port, str | 68 | @@ -943,8 +956,10 @@ remote_connect(const char *host, const char *port, str |
69 | if (sflag || pflag) { | 69 | if (sflag || pflag) { |
70 | struct addrinfo ahints, *ares; | 70 | struct addrinfo ahints, *ares; |
71 | 71 | ||
@@ -76,7 +76,7 @@ | |||
76 | memset(&ahints, 0, sizeof(struct addrinfo)); | 76 | memset(&ahints, 0, sizeof(struct addrinfo)); |
77 | ahints.ai_family = res->ai_family; | 77 | ahints.ai_family = res->ai_family; |
78 | ahints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM; | 78 | ahints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM; |
79 | @@ -1031,7 +1046,10 @@ int | 79 | @@ -1036,7 +1051,10 @@ int |
80 | local_listen(const char *host, const char *port, struct addrinfo hints) | 80 | local_listen(const char *host, const char *port, struct addrinfo hints) |
81 | { | 81 | { |
82 | struct addrinfo *res, *res0; | 82 | struct addrinfo *res, *res0; |
@@ -88,7 +88,7 @@ | |||
88 | int error; | 88 | int error; |
89 | 89 | ||
90 | /* Allow nodename to be null. */ | 90 | /* Allow nodename to be null. */ |
91 | @@ -1052,9 +1070,11 @@ local_listen(const char *host, const char *port, struc | 91 | @@ -1057,9 +1075,11 @@ local_listen(const char *host, const char *port, struc |
92 | res->ai_protocol)) == -1) | 92 | res->ai_protocol)) == -1) |
93 | continue; | 93 | continue; |
94 | 94 | ||
@@ -100,7 +100,7 @@ | |||
100 | 100 | ||
101 | set_common_sockopts(s, res->ai_family); | 101 | set_common_sockopts(s, res->ai_family); |
102 | 102 | ||
103 | @@ -1559,11 +1579,13 @@ set_common_sockopts(int s, int af) | 103 | @@ -1564,11 +1584,13 @@ set_common_sockopts(int s, int af) |
104 | { | 104 | { |
105 | int x = 1; | 105 | int x = 1; |
106 | 106 | ||
@@ -114,7 +114,7 @@ | |||
114 | if (Dflag) { | 114 | if (Dflag) { |
115 | if (setsockopt(s, SOL_SOCKET, SO_DEBUG, | 115 | if (setsockopt(s, SOL_SOCKET, SO_DEBUG, |
116 | &x, sizeof(x)) == -1) | 116 | &x, sizeof(x)) == -1) |
117 | @@ -1574,9 +1596,16 @@ set_common_sockopts(int s, int af) | 117 | @@ -1579,9 +1601,16 @@ set_common_sockopts(int s, int af) |
118 | IP_TOS, &Tflag, sizeof(Tflag)) == -1) | 118 | IP_TOS, &Tflag, sizeof(Tflag)) == -1) |
119 | err(1, "set IP ToS"); | 119 | err(1, "set IP ToS"); |
120 | 120 | ||
@@ -131,7 +131,7 @@ | |||
131 | } | 131 | } |
132 | if (Iflag) { | 132 | if (Iflag) { |
133 | if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, | 133 | if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, |
134 | @@ -1600,13 +1629,17 @@ set_common_sockopts(int s, int af) | 134 | @@ -1605,13 +1634,17 @@ set_common_sockopts(int s, int af) |
135 | } | 135 | } |
136 | 136 | ||
137 | if (minttl != -1) { | 137 | if (minttl != -1) { |
@@ -150,7 +150,7 @@ | |||
150 | } | 150 | } |
151 | } | 151 | } |
152 | 152 | ||
153 | @@ -1831,15 +1864,19 @@ help(void) | 153 | @@ -1841,15 +1874,19 @@ help(void) |
154 | \t-P proxyuser\tUsername for proxy authentication\n\ | 154 | \t-P proxyuser\tUsername for proxy authentication\n\ |
155 | \t-p port\t Specify local port for remote connects\n\ | 155 | \t-p port\t Specify local port for remote connects\n\ |
156 | \t-R CAfile CA bundle\n\ | 156 | \t-R CAfile CA bundle\n\ |
@@ -175,4 +175,4 @@ | |||
175 | + "\t-v Verbose\n\ | 175 | + "\t-v Verbose\n\ |
176 | \t-W recvlimit Terminate after receiving a number of packets\n\ | 176 | \t-W recvlimit Terminate after receiving a number of packets\n\ |
177 | \t-w timeout Timeout for connects and final net reads\n\ | 177 | \t-w timeout Timeout for connects and final net reads\n\ |
178 | \t-X proto Proxy protocol: \"4\", \"5\" (SOCKS) or \"connect\"\n\ | 178 | \t-X proto Proxy protocol: \"4\", \"4A\", \"5\" (SOCKS) or \"connect\"\n\ |
diff --git a/patches/openssl.c.patch b/patches/openssl.c.patch index 5ba5ac6..60ea9a7 100644 --- a/patches/openssl.c.patch +++ b/patches/openssl.c.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | --- apps/openssl/openssl.c.orig Thu Jan 2 08:27:54 2025 | 1 | --- apps/openssl/openssl.c.orig Sat May 31 03:18:05 2025 |
2 | +++ apps/openssl/openssl.c Thu Jan 2 08:28:04 2025 | 2 | +++ apps/openssl/openssl.c Sat May 31 03:18:17 2025 |
3 | @@ -344,7 +344,9 @@ BIO *bio_err = NULL; | 3 | @@ -341,7 +341,9 @@ BIO *bio_err = NULL; |
4 | static void | 4 | static void |
5 | openssl_startup(void) | 5 | openssl_startup(void) |
6 | { | 6 | { |
diff --git a/patches/opensslfeatures.h.patch b/patches/opensslfeatures.h.patch index 77df5dc..d370b32 100644 --- a/patches/opensslfeatures.h.patch +++ b/patches/opensslfeatures.h.patch | |||
@@ -36,3 +36,14 @@ | |||
36 | #include "bytestring.h" | 36 | #include "bytestring.h" |
37 | 37 | ||
38 | #if defined(__cplusplus) | 38 | #if defined(__cplusplus) |
39 | --- tests/test.h.orig Sat May 31 04:48:09 2025 | ||
40 | +++ tests/test.h Sat May 31 04:48:31 2025 | ||
41 | @@ -18,6 +18,8 @@ | ||
42 | #ifndef HEADER_TEST_H | ||
43 | #define HEADER_TEST_H | ||
44 | |||
45 | +#include <openssl/opensslfeatures.h> | ||
46 | + | ||
47 | #include <stddef.h> | ||
48 | #include <stdint.h> | ||
49 | |||
diff --git a/patches/patch-aarch64-crypto-cpu-caps.c.patch b/patches/patch-aarch64-crypto-cpu-caps.c.patch deleted file mode 100644 index dcfbdc0..0000000 --- a/patches/patch-aarch64-crypto-cpu-caps.c.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | Disable feature detection until we find a more portable way. | ||
2 | |||
3 | --- crypto/arch/aarch64/crypto_cpu_caps.c.orig Sat Dec 14 13:45:16 2024 | ||
4 | +++ crypto/arch/aarch64/crypto_cpu_caps.c Sat Dec 14 13:54:06 2024 | ||
5 | @@ -16,9 +16,12 @@ | ||
6 | */ | ||
7 | |||
8 | #include <sys/types.h> | ||
9 | + | ||
10 | +#if defined(__OpenBSD__) | ||
11 | #include <sys/sysctl.h> | ||
12 | |||
13 | #include <machine/cpu.h> | ||
14 | +#endif | ||
15 | |||
16 | #include <stddef.h> | ||
17 | #include <stdio.h> | ||
18 | @@ -67,6 +70,7 @@ parse_isar0(uint64_t isar0) | ||
19 | return caps; | ||
20 | } | ||
21 | |||
22 | +#if defined(__OpenBSD__) | ||
23 | static int | ||
24 | read_isar0(uint64_t *isar0) | ||
25 | { | ||
26 | @@ -84,6 +88,13 @@ read_isar0(uint64_t *isar0) | ||
27 | |||
28 | return 1; | ||
29 | } | ||
30 | +#else | ||
31 | +static int | ||
32 | +read_isar0(uint64_t *isar0) | ||
33 | +{ | ||
34 | + return 0; | ||
35 | +} | ||
36 | +#endif | ||
37 | |||
38 | void | ||
39 | crypto_cpu_caps_init(void) | ||
diff --git a/patches/patch-i386-crypto-cpu-caps.c.patch b/patches/patch-i386-crypto-cpu-caps.c.patch index c85e33c..0642582 100644 --- a/patches/patch-i386-crypto-cpu-caps.c.patch +++ b/patches/patch-i386-crypto-cpu-caps.c.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | --- crypto/arch/i386/crypto_cpu_caps.c.orig Fri Oct 18 17:35:20 2024 | 1 | --- crypto/arch/i386/crypto_cpu_caps.c.orig Mon Jun 16 10:38:27 2025 |
2 | +++ crypto/arch/i386/crypto_cpu_caps.c Fri Oct 18 17:39:13 2024 | 2 | +++ crypto/arch/i386/crypto_cpu_caps.c Mon Jun 16 10:38:39 2025 |
3 | @@ -33,7 +33,7 @@ cpuid(uint32_t eax, uint32_t *out_eax, uint32_t *out_e | 3 | @@ -37,7 +37,7 @@ cpuid(uint32_t eax, uint32_t *out_eax, uint32_t *out_e |
4 | { | 4 | { |
5 | uint32_t ebx = 0, ecx = 0, edx = 0; | 5 | uint32_t ebx = 0, ecx = 0, edx = 0; |
6 | 6 | ||
@@ -9,7 +9,7 @@ | |||
9 | __asm__ ("cpuid": "+a"(eax), "+b"(ebx), "+c"(ecx), "+d"(edx)); | 9 | __asm__ ("cpuid": "+a"(eax), "+b"(ebx), "+c"(ecx), "+d"(edx)); |
10 | #else | 10 | #else |
11 | eax = 0; | 11 | eax = 0; |
12 | @@ -54,7 +54,7 @@ xgetbv(uint32_t ecx, uint32_t *out_eax, uint32_t *out_ | 12 | @@ -58,7 +58,7 @@ xgetbv(uint32_t ecx, uint32_t *out_eax, uint32_t *out_ |
13 | { | 13 | { |
14 | uint32_t eax = 0, edx = 0; | 14 | uint32_t eax = 0, edx = 0; |
15 | 15 | ||
diff --git a/patches/speed.c.patch b/patches/speed.c.patch index e1f1698..32e42b4 100644 --- a/patches/speed.c.patch +++ b/patches/speed.c.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | --- apps/openssl/speed.c.orig Thu Jan 2 08:04:28 2025 | 1 | --- apps/openssl/speed.c.orig Sat May 31 03:18:05 2025 |
2 | +++ apps/openssl/speed.c Thu Jan 2 08:04:38 2025 | 2 | +++ apps/openssl/speed.c Sat May 31 03:18:17 2025 |
3 | @@ -158,7 +158,16 @@ static void | 3 | @@ -154,7 +154,16 @@ static void |
4 | pkey_print_message(const char *str, const char *str2, | 4 | pkey_print_message(const char *str, const char *str2, |
5 | long num, int bits, int sec); | 5 | long num, int bits, int sec); |
6 | static void print_result(int alg, int run_no, int count, double time_used); | 6 | static void print_result(int alg, int run_no, int count, double time_used); |
@@ -15,9 +15,9 @@ | |||
15 | +#define alarm(seconds) speed_alarm((seconds)) | 15 | +#define alarm(seconds) speed_alarm((seconds)) |
16 | +#endif | 16 | +#endif |
17 | 17 | ||
18 | #define ALGOR_NUM 32 | 18 | #define ALGOR_NUM 31 |
19 | #define SIZE_NUM 5 | 19 | #define SIZE_NUM 5 |
20 | @@ -1129,8 +1138,10 @@ speed_main(int argc, char **argv) | 20 | @@ -1087,8 +1096,10 @@ speed_main(int argc, char **argv) |
21 | const EVP_CIPHER *evp_cipher = NULL; | 21 | const EVP_CIPHER *evp_cipher = NULL; |
22 | const EVP_MD *evp_md = NULL; | 22 | const EVP_MD *evp_md = NULL; |
23 | int decrypt = 0; | 23 | int decrypt = 0; |
@@ -28,7 +28,7 @@ | |||
28 | const char *errstr = NULL; | 28 | const char *errstr = NULL; |
29 | 29 | ||
30 | if (pledge("stdio proc", NULL) == -1) { | 30 | if (pledge("stdio proc", NULL) == -1) { |
31 | @@ -1205,6 +1216,7 @@ speed_main(int argc, char **argv) | 31 | @@ -1163,6 +1174,7 @@ speed_main(int argc, char **argv) |
32 | decrypt = 1; | 32 | decrypt = 1; |
33 | j--; /* Otherwise, -decrypt gets confused with an | 33 | j--; /* Otherwise, -decrypt gets confused with an |
34 | * algorithm. */ | 34 | * algorithm. */ |
@@ -36,7 +36,7 @@ | |||
36 | } else if (argc > 0 && strcmp(*argv, "-multi") == 0) { | 36 | } else if (argc > 0 && strcmp(*argv, "-multi") == 0) { |
37 | argc--; | 37 | argc--; |
38 | argv++; | 38 | argv++; |
39 | @@ -1219,6 +1231,7 @@ speed_main(int argc, char **argv) | 39 | @@ -1177,6 +1189,7 @@ speed_main(int argc, char **argv) |
40 | } | 40 | } |
41 | j--; /* Otherwise, -multi gets confused with an | 41 | j--; /* Otherwise, -multi gets confused with an |
42 | * algorithm. */ | 42 | * algorithm. */ |
@@ -44,7 +44,7 @@ | |||
44 | } else if (argc > 0 && strcmp(*argv, "-unaligned") == 0) { | 44 | } else if (argc > 0 && strcmp(*argv, "-unaligned") == 0) { |
45 | argc--; | 45 | argc--; |
46 | argv++; | 46 | argv++; |
47 | @@ -1542,7 +1555,9 @@ speed_main(int argc, char **argv) | 47 | @@ -1491,7 +1504,9 @@ speed_main(int argc, char **argv) |
48 | BIO_printf(bio_err, "-evp e use EVP e.\n"); | 48 | BIO_printf(bio_err, "-evp e use EVP e.\n"); |
49 | BIO_printf(bio_err, "-decrypt time decryption instead of encryption (only EVP).\n"); | 49 | BIO_printf(bio_err, "-decrypt time decryption instead of encryption (only EVP).\n"); |
50 | BIO_printf(bio_err, "-mr produce machine readable output.\n"); | 50 | BIO_printf(bio_err, "-mr produce machine readable output.\n"); |
@@ -54,7 +54,7 @@ | |||
54 | BIO_printf(bio_err, "-unaligned n use buffers with offset n from proper alignment.\n"); | 54 | BIO_printf(bio_err, "-unaligned n use buffers with offset n from proper alignment.\n"); |
55 | goto end; | 55 | goto end; |
56 | } | 56 | } |
57 | @@ -1551,8 +1566,10 @@ speed_main(int argc, char **argv) | 57 | @@ -1500,8 +1515,10 @@ speed_main(int argc, char **argv) |
58 | j++; | 58 | j++; |
59 | } | 59 | } |
60 | 60 | ||
@@ -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 | @@ -1624,11 +1641,13 @@ speed_main(int argc, char **argv) | 68 | @@ -1573,11 +1590,13 @@ speed_main(int argc, char **argv) |
69 | #define COND(c) (run && count<0x7fffffff) | 69 | #define COND(c) (run && count<0x7fffffff) |
70 | #define COUNT(d) (count) | 70 | #define COUNT(d) (count) |
71 | 71 | ||
@@ -79,7 +79,7 @@ | |||
79 | 79 | ||
80 | #ifndef OPENSSL_NO_MD4 | 80 | #ifndef OPENSSL_NO_MD4 |
81 | if (doit[D_MD4]) { | 81 | if (doit[D_MD4]) { |
82 | @@ -2434,7 +2453,9 @@ speed_main(int argc, char **argv) | 82 | @@ -2370,7 +2389,9 @@ speed_main(int argc, char **argv) |
83 | ecdh_doit[j] = 0; | 83 | ecdh_doit[j] = 0; |
84 | } | 84 | } |
85 | } | 85 | } |
@@ -89,7 +89,7 @@ | |||
89 | if (!mr) { | 89 | if (!mr) { |
90 | fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_VERSION)); | 90 | fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_VERSION)); |
91 | fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_BUILT_ON)); | 91 | fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_BUILT_ON)); |
92 | @@ -2590,11 +2611,15 @@ pkey_print_message(const char *str, const char *str2, | 92 | @@ -2526,11 +2547,15 @@ pkey_print_message(const char *str, const char *str2, |
93 | static void | 93 | static void |
94 | print_result(int alg, int run_no, int count, double time_used) | 94 | print_result(int alg, int run_no, int count, double time_used) |
95 | { | 95 | { |
@@ -105,7 +105,7 @@ | |||
105 | static char * | 105 | static char * |
106 | sstrsep(char **string, const char *delim) | 106 | sstrsep(char **string, const char *delim) |
107 | { | 107 | { |
108 | @@ -2795,5 +2820,6 @@ do_multi(int multi) | 108 | @@ -2731,5 +2756,6 @@ do_multi(int multi) |
109 | free(fds); | 109 | free(fds); |
110 | return 1; | 110 | return 1; |
111 | } | 111 | } |