From a27642bf418cb1d464d2d19226e5a13007068cf6 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sun, 6 Feb 2022 21:11:52 -0600 Subject: rebase patches --- patches/speed.c.patch | 22 +++++++++++----------- 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 @@ ---- apps/openssl/speed.c.orig Tue Jul 2 21:58:28 2019 -+++ apps/openssl/speed.c Sun Jul 14 19:39:44 2019 -@@ -159,7 +159,16 @@ static void +--- apps/openssl/speed.c.orig Sun Feb 6 20:37:16 2022 ++++ apps/openssl/speed.c Sun Feb 6 21:07:42 2022 +@@ -159,7 +159,16 @@ pkey_print_message(const char *str, const char *str2, long num, int bits, int sec); static void print_result(int alg, int run_no, int count, double time_used); @@ -17,7 +17,7 @@ #define ALGOR_NUM 32 #define SIZE_NUM 5 -@@ -466,8 +475,10 @@ speed_main(int argc, char **argv) +@@ -466,8 +475,10 @@ const EVP_CIPHER *evp_cipher = NULL; const EVP_MD *evp_md = NULL; int decrypt = 0; @@ -28,7 +28,7 @@ if (single_execution) { if (pledge("stdio proc", NULL) == -1) { -@@ -544,6 +555,7 @@ speed_main(int argc, char **argv) +@@ -544,6 +555,7 @@ j--; /* Otherwise, -decrypt gets confused with an * algorithm. */ } @@ -36,7 +36,7 @@ else if ((argc > 0) && (strcmp(*argv, "-multi") == 0)) { argc--; argv++; -@@ -559,6 +571,7 @@ speed_main(int argc, char **argv) +@@ -559,6 +571,7 @@ j--; /* Otherwise, -multi gets confused with an * algorithm. */ } @@ -44,7 +44,7 @@ else if (argc > 0 && !strcmp(*argv, "-mr")) { mr = 1; j--; /* Otherwise, -mr gets confused with an -@@ -921,7 +934,9 @@ speed_main(int argc, char **argv) +@@ -921,7 +934,9 @@ BIO_printf(bio_err, "-evp e use EVP e.\n"); BIO_printf(bio_err, "-decrypt time decryption instead of encryption (only EVP).\n"); BIO_printf(bio_err, "-mr produce machine readable output.\n"); @@ -54,7 +54,7 @@ goto end; } argc--; -@@ -929,8 +944,10 @@ speed_main(int argc, char **argv) +@@ -929,8 +944,10 @@ j++; } @@ -65,7 +65,7 @@ if (j == 0) { for (i = 0; i < ALGOR_NUM; i++) { -@@ -1771,7 +1788,9 @@ speed_main(int argc, char **argv) +@@ -1807,7 +1824,9 @@ ecdh_doit[j] = 0; } } @@ -75,7 +75,7 @@ if (!mr) { fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_VERSION)); fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_BUILT_ON)); -@@ -1944,11 +1963,15 @@ pkey_print_message(const char *str, const char *str2, +@@ -1980,11 +1999,15 @@ static void print_result(int alg, int run_no, int count, double time_used) { @@ -91,7 +91,7 @@ static char * sstrsep(char **string, const char *delim) { -@@ -2155,4 +2178,5 @@ do_multi(int multi) +@@ -2191,4 +2214,5 @@ free(fds); return 1; } 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 @@ ---- tests/tlsexttest.c.orig Mon Apr 5 01:40:26 2021 -+++ tests/tlsexttest.c Thu Apr 8 04:17:13 2021 +--- tests/tlsexttest.c.orig Sun Feb 6 20:37:16 2022 ++++ tests/tlsexttest.c Sun Feb 6 21:07:42 2022 @@ -1658,7 +1658,9 @@ }; @@ -10,7 +10,7 @@ static int test_tlsext_sni_client(void) -@@ -1821,9 +1823,9 @@ +@@ -1843,9 +1845,9 @@ if (!CBB_finish(&cbb, &data, &dlen)) errx(1, "failed to finish CBB"); @@ -22,7 +22,7 @@ goto err; } -@@ -1832,14 +1834,14 @@ +@@ -1854,14 +1856,14 @@ fprintf(stderr, "received:\n"); hexdump(data, dlen); fprintf(stderr, "test data:\n"); @@ -39,7 +39,7 @@ if (!tlsext_sni_client_parse(ssl, SSL_TLSEXT_MSG_SH, &cbs, &alert)) { FAIL("failed to parse server SNI\n"); goto err; -@@ -2723,7 +2725,10 @@ +@@ -2746,7 +2748,10 @@ 0x04, 0x03, 0x02, 0x01, 0x02, 0x03, }; @@ -51,9 +51,9 @@ static int test_tlsext_clienthello_build(void) -@@ -2791,18 +2796,18 @@ - if (!CBB_finish(&cbb, &data, &dlen)) - errx(1, "failed to finish CBB"); +@@ -2823,18 +2828,18 @@ + goto err; + } - if (dlen != sizeof(tlsext_clienthello_disabled)) { + if (dlen != sizeof_tlsext_clienthello_disabled) { -- cgit v1.2.3-55-g6feb