aboutsummaryrefslogtreecommitdiff
path: root/patches/tlsexttest.c.patch
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2022-08-15 07:59:06 +0200
committerTheo Buehler <tb@openbsd.org>2022-08-15 08:01:34 +0200
commit3fcde14a007bae1bf1adb9ffdd58ebb06f6dce36 (patch)
tree6449f81fffb4fbb6cf02b0c589bbc71cbc5f1bf4 /patches/tlsexttest.c.patch
parente7c48bb560efd49ace610f9f8c516728366435f3 (diff)
downloadportable-3fcde14a007bae1bf1adb9ffdd58ebb06f6dce36.tar.gz
portable-3fcde14a007bae1bf1adb9ffdd58ebb06f6dce36.tar.bz2
portable-3fcde14a007bae1bf1adb9ffdd58ebb06f6dce36.zip
regen tlsextest patch
fixes #777
Diffstat (limited to 'patches/tlsexttest.c.patch')
-rw-r--r--patches/tlsexttest.c.patch16
1 files changed, 8 insertions, 8 deletions
diff --git a/patches/tlsexttest.c.patch b/patches/tlsexttest.c.patch
index b1b8652..3c93df8 100644
--- a/patches/tlsexttest.c.patch
+++ b/patches/tlsexttest.c.patch
@@ -1,6 +1,6 @@
1--- tests/tlsexttest.c.orig Fri Feb 18 16:30:40 2022 1--- tests/tlsexttest.c.orig Mon Aug 15 07:54:28 2022
2+++ tests/tlsexttest.c Mon Feb 21 05:39:35 2022 2+++ tests/tlsexttest.c Mon Aug 15 07:57:01 2022
3@@ -1658,7 +1658,9 @@ 3@@ -1773,7 +1773,9 @@ static unsigned char tlsext_sni_client[] = {
4 }; 4 };
5 5
6 static unsigned char tlsext_sni_server[] = { 6 static unsigned char tlsext_sni_server[] = {
@@ -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@@ -1843,9 +1845,9 @@ 13@@ -1971,9 +1973,9 @@ test_tlsext_sni_server(void)
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@@ -1854,14 +1856,14 @@ 25@@ -1982,14 +1984,14 @@ test_tlsext_sni_server(void)
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");
@@ -36,10 +36,10 @@
36 36
37- CBS_init(&cbs, tlsext_sni_server, sizeof(tlsext_sni_server)); 37- CBS_init(&cbs, tlsext_sni_server, sizeof(tlsext_sni_server));
38+ CBS_init(&cbs, tlsext_sni_server, sizeof_tlsext_sni_server); 38+ CBS_init(&cbs, tlsext_sni_server, sizeof_tlsext_sni_server);
39 if (!tlsext_sni_client_parse(ssl, SSL_TLSEXT_MSG_SH, &cbs, &alert)) { 39 if (!client_funcs->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@@ -2747,7 +2749,10 @@ 42@@ -3194,7 +3196,10 @@ unsigned char tlsext_clienthello_default[] = {
43 0x04, 0x03, 0x02, 0x01, 0x02, 0x03, 43 0x04, 0x03, 0x02, 0x01, 0x02, 0x03,
44 }; 44 };
45 45
@@ -51,7 +51,7 @@
51 51
52 static int 52 static int
53 test_tlsext_clienthello_build(void) 53 test_tlsext_clienthello_build(void)
54@@ -2826,18 +2831,18 @@ 54@@ -3280,18 +3285,18 @@ test_tlsext_clienthello_build(void)
55 goto err; 55 goto err;
56 } 56 }
57 57