diff options
author | Brent Cook <busterb@gmail.com> | 2022-02-06 21:11:52 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2022-02-06 21:11:52 -0600 |
commit | a27642bf418cb1d464d2d19226e5a13007068cf6 (patch) | |
tree | 923deed35cd52bd4e472ebe1b7be7464e5be1c96 | |
parent | e70d8cba5c448f2229cb1114efa2684fc4e5d4f7 (diff) | |
download | portable-a27642bf418cb1d464d2d19226e5a13007068cf6.tar.gz portable-a27642bf418cb1d464d2d19226e5a13007068cf6.tar.bz2 portable-a27642bf418cb1d464d2d19226e5a13007068cf6.zip |
rebase patches
-rw-r--r-- | patches/speed.c.patch | 22 | ||||
-rw-r--r-- | patches/tlsexttest.c.patch | 16 |
2 files changed, 19 insertions, 19 deletions
diff --git a/patches/speed.c.patch b/patches/speed.c.patch index 28b060b..11f9f03 100644 --- a/patches/speed.c.patch +++ b/patches/speed.c.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | --- apps/openssl/speed.c.orig Tue Jul 2 21:58:28 2019 | 1 | --- apps/openssl/speed.c.orig Sun Feb 6 20:37:16 2022 |
2 | +++ apps/openssl/speed.c Sun Jul 14 19:39:44 2019 | 2 | +++ apps/openssl/speed.c Sun Feb 6 21:07:42 2022 |
3 | @@ -159,7 +159,16 @@ static void | 3 | @@ -159,7 +159,16 @@ |
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); |
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | #define ALGOR_NUM 32 | 18 | #define ALGOR_NUM 32 |
19 | #define SIZE_NUM 5 | 19 | #define SIZE_NUM 5 |
20 | @@ -466,8 +475,10 @@ speed_main(int argc, char **argv) | 20 | @@ -466,8 +475,10 @@ |
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 | 28 | ||
29 | if (single_execution) { | 29 | if (single_execution) { |
30 | if (pledge("stdio proc", NULL) == -1) { | 30 | if (pledge("stdio proc", NULL) == -1) { |
31 | @@ -544,6 +555,7 @@ speed_main(int argc, char **argv) | 31 | @@ -544,6 +555,7 @@ |
32 | j--; /* Otherwise, -decrypt gets confused with an | 32 | j--; /* Otherwise, -decrypt gets confused with an |
33 | * algorithm. */ | 33 | * algorithm. */ |
34 | } | 34 | } |
@@ -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 | @@ -559,6 +571,7 @@ speed_main(int argc, char **argv) | 39 | @@ -559,6 +571,7 @@ |
40 | j--; /* Otherwise, -multi gets confused with an | 40 | j--; /* Otherwise, -multi gets confused with an |
41 | * algorithm. */ | 41 | * algorithm. */ |
42 | } | 42 | } |
@@ -44,7 +44,7 @@ | |||
44 | else if (argc > 0 && !strcmp(*argv, "-mr")) { | 44 | else if (argc > 0 && !strcmp(*argv, "-mr")) { |
45 | mr = 1; | 45 | mr = 1; |
46 | j--; /* Otherwise, -mr gets confused with an | 46 | j--; /* Otherwise, -mr gets confused with an |
47 | @@ -921,7 +934,9 @@ speed_main(int argc, char **argv) | 47 | @@ -921,7 +934,9 @@ |
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 | goto end; | 54 | goto end; |
55 | } | 55 | } |
56 | argc--; | 56 | argc--; |
57 | @@ -929,8 +944,10 @@ speed_main(int argc, char **argv) | 57 | @@ -929,8 +944,10 @@ |
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 | @@ -1771,7 +1788,9 @@ speed_main(int argc, char **argv) | 68 | @@ -1807,7 +1824,9 @@ |
69 | ecdh_doit[j] = 0; | 69 | ecdh_doit[j] = 0; |
70 | } | 70 | } |
71 | } | 71 | } |
@@ -75,7 +75,7 @@ | |||
75 | if (!mr) { | 75 | if (!mr) { |
76 | fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_VERSION)); | 76 | fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_VERSION)); |
77 | fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_BUILT_ON)); | 77 | fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_BUILT_ON)); |
78 | @@ -1944,11 +1963,15 @@ pkey_print_message(const char *str, const char *str2, | 78 | @@ -1980,11 +1999,15 @@ |
79 | static void | 79 | static void |
80 | print_result(int alg, int run_no, int count, double time_used) | 80 | print_result(int alg, int run_no, int count, double time_used) |
81 | { | 81 | { |
@@ -91,7 +91,7 @@ | |||
91 | static char * | 91 | static char * |
92 | sstrsep(char **string, const char *delim) | 92 | sstrsep(char **string, const char *delim) |
93 | { | 93 | { |
94 | @@ -2155,4 +2178,5 @@ do_multi(int multi) | 94 | @@ -2191,4 +2214,5 @@ |
95 | free(fds); | 95 | free(fds); |
96 | return 1; | 96 | return 1; |
97 | } | 97 | } |
diff --git a/patches/tlsexttest.c.patch b/patches/tlsexttest.c.patch index f81c196..be73102 100644 --- a/patches/tlsexttest.c.patch +++ b/patches/tlsexttest.c.patch | |||
@@ -1,5 +1,5 @@ | |||
1 | --- tests/tlsexttest.c.orig Mon Apr 5 01:40:26 2021 | 1 | --- tests/tlsexttest.c.orig Sun Feb 6 20:37:16 2022 |
2 | +++ tests/tlsexttest.c Thu Apr 8 04:17:13 2021 | 2 | +++ tests/tlsexttest.c Sun Feb 6 21:07:42 2022 |
3 | @@ -1658,7 +1658,9 @@ | 3 | @@ -1658,7 +1658,9 @@ |
4 | }; | 4 | }; |
5 | 5 | ||
@@ -10,7 +10,7 @@ | |||
10 | 10 | ||
11 | static int | 11 | static int |
12 | test_tlsext_sni_client(void) | 12 | test_tlsext_sni_client(void) |
13 | @@ -1821,9 +1823,9 @@ | 13 | @@ -1843,9 +1845,9 @@ |
14 | if (!CBB_finish(&cbb, &data, &dlen)) | 14 | if (!CBB_finish(&cbb, &data, &dlen)) |
15 | errx(1, "failed to finish CBB"); | 15 | errx(1, "failed to finish CBB"); |
16 | 16 | ||
@@ -22,7 +22,7 @@ | |||
22 | goto err; | 22 | goto err; |
23 | } | 23 | } |
24 | 24 | ||
25 | @@ -1832,14 +1834,14 @@ | 25 | @@ -1854,14 +1856,14 @@ |
26 | fprintf(stderr, "received:\n"); | 26 | fprintf(stderr, "received:\n"); |
27 | hexdump(data, dlen); | 27 | hexdump(data, dlen); |
28 | fprintf(stderr, "test data:\n"); | 28 | fprintf(stderr, "test data:\n"); |
@@ -39,7 +39,7 @@ | |||
39 | if (!tlsext_sni_client_parse(ssl, SSL_TLSEXT_MSG_SH, &cbs, &alert)) { | 39 | if (!tlsext_sni_client_parse(ssl, SSL_TLSEXT_MSG_SH, &cbs, &alert)) { |
40 | FAIL("failed to parse server SNI\n"); | 40 | FAIL("failed to parse server SNI\n"); |
41 | goto err; | 41 | goto err; |
42 | @@ -2723,7 +2725,10 @@ | 42 | @@ -2746,7 +2748,10 @@ |
43 | 0x04, 0x03, 0x02, 0x01, 0x02, 0x03, | 43 | 0x04, 0x03, 0x02, 0x01, 0x02, 0x03, |
44 | }; | 44 | }; |
45 | 45 | ||
@@ -51,9 +51,9 @@ | |||
51 | 51 | ||
52 | static int | 52 | static int |
53 | test_tlsext_clienthello_build(void) | 53 | test_tlsext_clienthello_build(void) |
54 | @@ -2791,18 +2796,18 @@ | 54 | @@ -2823,18 +2828,18 @@ |
55 | if (!CBB_finish(&cbb, &data, &dlen)) | 55 | goto err; |
56 | errx(1, "failed to finish CBB"); | 56 | } |
57 | 57 | ||
58 | - if (dlen != sizeof(tlsext_clienthello_disabled)) { | 58 | - if (dlen != sizeof(tlsext_clienthello_disabled)) { |
59 | + if (dlen != sizeof_tlsext_clienthello_disabled) { | 59 | + if (dlen != sizeof_tlsext_clienthello_disabled) { |