Skip to content

Commit 8dad5fe

Browse files
committed
Update for speed.c and .h churn
1 parent feb5a0d commit 8dad5fe

File tree

3 files changed

+17
-21
lines changed

3 files changed

+17
-21
lines changed

apps/openssl/Makefile.am

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,6 @@ endif
8888
endif
8989

9090
noinst_HEADERS = apps.h
91-
noinst_HEADERS += progs.h
92-
noinst_HEADERS += s_apps.h
93-
noinst_HEADERS += testdsa.h
94-
noinst_HEADERS += testrsa.h
95-
noinst_HEADERS += timeouts.h
9691

9792
EXTRA_DIST = CMakeLists.txt
9893

patches/openssl.c.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- apps/openssl/openssl.c.orig Fri Aug 2 23:52:59 2024
2-
+++ apps/openssl/openssl.c Fri Aug 2 23:53:17 2024
3-
@@ -347,7 +347,9 @@ BIO *bio_err = NULL;
1+
--- apps/openssl/openssl.c.orig Thu Jan 2 08:27:54 2025
2+
+++ apps/openssl/openssl.c Thu Jan 2 08:28:04 2025
3+
@@ -344,7 +344,9 @@ BIO *bio_err = NULL;
44
static void
55
openssl_startup(void)
66
{

patches/speed.c.patch

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- apps/openssl/speed.c.orig Sat Dec 14 13:45:20 2024
2-
+++ apps/openssl/speed.c Sat Dec 14 13:46:47 2024
3-
@@ -161,7 +161,16 @@ static void
1+
--- apps/openssl/speed.c.orig Thu Jan 2 08:04:28 2025
2+
+++ apps/openssl/speed.c Thu Jan 2 08:04:38 2025
3+
@@ -158,7 +158,16 @@ static void
44
pkey_print_message(const char *str, const char *str2,
55
long num, int bits, int sec);
66
static void print_result(int alg, int run_no, int count, double time_used);
@@ -17,7 +17,7 @@
1717

1818
#define ALGOR_NUM 32
1919
#define SIZE_NUM 5
20-
@@ -424,8 +433,10 @@ speed_main(int argc, char **argv)
20+
@@ -1129,8 +1138,10 @@ speed_main(int argc, char **argv)
2121
const EVP_CIPHER *evp_cipher = NULL;
2222
const EVP_MD *evp_md = NULL;
2323
int decrypt = 0;
@@ -28,23 +28,23 @@
2828
const char *errstr = NULL;
2929

3030
if (pledge("stdio proc", NULL) == -1) {
31-
@@ -500,6 +511,7 @@ speed_main(int argc, char **argv)
31+
@@ -1205,6 +1216,7 @@ speed_main(int argc, char **argv)
3232
decrypt = 1;
3333
j--; /* Otherwise, -decrypt gets confused with an
3434
* algorithm. */
3535
+#ifndef _WIN32
3636
} else if (argc > 0 && strcmp(*argv, "-multi") == 0) {
3737
argc--;
3838
argv++;
39-
@@ -514,6 +526,7 @@ speed_main(int argc, char **argv)
39+
@@ -1219,6 +1231,7 @@ speed_main(int argc, char **argv)
4040
}
4141
j--; /* Otherwise, -multi gets confused with an
4242
* algorithm. */
4343
+#endif
4444
} else if (argc > 0 && strcmp(*argv, "-unaligned") == 0) {
4545
argc--;
4646
argv++;
47-
@@ -837,7 +850,9 @@ speed_main(int argc, char **argv)
47+
@@ -1542,7 +1555,9 @@ speed_main(int argc, char **argv)
4848
BIO_printf(bio_err, "-evp e use EVP e.\n");
4949
BIO_printf(bio_err, "-decrypt time decryption instead of encryption (only EVP).\n");
5050
BIO_printf(bio_err, "-mr produce machine readable output.\n");
@@ -54,7 +54,7 @@
5454
BIO_printf(bio_err, "-unaligned n use buffers with offset n from proper alignment.\n");
5555
goto end;
5656
}
57-
@@ -846,8 +861,10 @@ speed_main(int argc, char **argv)
57+
@@ -1551,8 +1566,10 @@ speed_main(int argc, char **argv)
5858
j++;
5959
}
6060

@@ -65,7 +65,7 @@
6565

6666
if (j == 0) {
6767
for (i = 0; i < ALGOR_NUM; i++) {
68-
@@ -919,11 +936,13 @@ speed_main(int argc, char **argv)
68+
@@ -1624,11 +1641,13 @@ speed_main(int argc, char **argv)
6969
#define COND(c) (run && count<0x7fffffff)
7070
#define COUNT(d) (count)
7171

@@ -79,7 +79,7 @@
7979

8080
#ifndef OPENSSL_NO_MD4
8181
if (doit[D_MD4]) {
82-
@@ -1729,7 +1748,9 @@ speed_main(int argc, char **argv)
82+
@@ -2434,7 +2453,9 @@ speed_main(int argc, char **argv)
8383
ecdh_doit[j] = 0;
8484
}
8585
}
@@ -89,7 +89,7 @@
8989
if (!mr) {
9090
fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_VERSION));
9191
fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_BUILT_ON));
92-
@@ -1885,11 +1906,15 @@ pkey_print_message(const char *str, const char *str2,
92+
@@ -2590,11 +2611,15 @@ pkey_print_message(const char *str, const char *str2,
9393
static void
9494
print_result(int alg, int run_no, int count, double time_used)
9595
{
@@ -105,9 +105,10 @@
105105
static char *
106106
sstrsep(char **string, const char *delim)
107107
{
108-
@@ -2090,4 +2115,5 @@ do_multi(int multi)
108+
@@ -2795,5 +2820,6 @@ do_multi(int multi)
109109
free(fds);
110110
return 1;
111111
}
112112
+#endif
113-
#endif
113+
114+
#endif /* OPENSSL_NO_SPEED */

0 commit comments

Comments
 (0)