aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2019-01-18 18:38:59 -0600
committerBrent Cook <busterb@gmail.com>2019-01-18 18:38:59 -0600
commit3ab11de0f1c015f7283f247b278b4194744dd888 (patch)
tree6ce761da59f32ac2b915016ef781159dcced3284
parent91d26602c97bb7d00386b0f6812046daf12eafe8 (diff)
downloadportable-3ab11de0f1c015f7283f247b278b4194744dd888.tar.gz
portable-3ab11de0f1c015f7283f247b278b4194744dd888.tar.bz2
portable-3ab11de0f1c015f7283f247b278b4194744dd888.zip
adjust for latest upstream changes
-rw-r--r--patches/tlsexttest.c.patch32
-rw-r--r--ssl/CMakeLists.txt1
-rw-r--r--ssl/Makefile.am3
3 files changed, 17 insertions, 19 deletions
diff --git a/patches/tlsexttest.c.patch b/patches/tlsexttest.c.patch
index cdec053..9fc3777 100644
--- a/patches/tlsexttest.c.patch
+++ b/patches/tlsexttest.c.patch
@@ -1,24 +1,24 @@
1--- tests/tlsexttest.c.orig Wed Nov 7 20:01:26 2018 1--- tests/tlsexttest.c.orig Fri Jan 18 18:12:03 2019
2+++ tests/tlsexttest.c Wed Nov 7 20:01:35 2018 2+++ tests/tlsexttest.c Fri Jan 18 18:38:20 2019
3@@ -1676,7 +1676,9 @@ 3@@ -1676,7 +1676,9 @@
4 }; 4 };
5 5
6 static unsigned char tlsext_sni_serverhello[] = { 6 static unsigned char tlsext_sni_server[] = {
7+ 0x00 7+ 0x00
8 }; 8 };
9+const size_t sizeof_tlsext_sni_serverhello = 0; 9+const size_t sizeof_tlsext_sni_server = 0;
10 10
11 static int 11 static int
12 test_tlsext_sni_clienthello(void) 12 test_tlsext_sni_client(void)
13@@ -1839,9 +1841,9 @@ 13@@ -1839,9 +1841,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
17- if (dlen != sizeof(tlsext_sni_serverhello)) { 17- if (dlen != sizeof(tlsext_sni_server)) {
18+ if (dlen != sizeof_tlsext_sni_serverhello) { 18+ if (dlen != sizeof_tlsext_sni_server) {
19 FAIL("got serverhello SNI with length %zu, " 19 FAIL("got server SNI with length %zu, "
20- "want length %zu\n", dlen, sizeof(tlsext_sni_serverhello)); 20- "want length %zu\n", dlen, sizeof(tlsext_sni_server));
21+ "want length %zu\n", dlen, sizeof_tlsext_sni_serverhello); 21+ "want length %zu\n", dlen, sizeof_tlsext_sni_server)
22 goto err; 22 goto err;
23 } 23 }
24 24
@@ -26,18 +26,18 @@
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");
29- hexdump(tlsext_sni_serverhello, sizeof(tlsext_sni_serverhello)); 29- hexdump(tlsext_sni_server, sizeof(tlsext_sni_server));
30+ hexdump(tlsext_sni_serverhello, sizeof_tlsext_sni_serverhello); 30+ hexdump(tlsext_sni_server, sizeof_tlsext_sni_server);
31 goto err; 31 goto err;
32 } 32 }
33 33
34 free(ssl->session->tlsext_hostname); 34 free(ssl->session->tlsext_hostname);
35 ssl->session->tlsext_hostname = NULL; 35 ssl->session->tlsext_hostname = NULL;
36 36
37- CBS_init(&cbs, tlsext_sni_serverhello, sizeof(tlsext_sni_serverhello)); 37- CBS_init(&cbs, tlsext_sni_server, sizeof(tlsext_sni_server));
38+ CBS_init(&cbs, tlsext_sni_serverhello, sizeof_tlsext_sni_serverhello); 38+ CBS_init(&cbs, tlsext_sni_server, sizeof_tlsext_sni_server);
39 if (!tlsext_sni_serverhello_parse(ssl, &cbs, &alert)) { 39 if (!tlsext_sni_client_parse(ssl, &cbs, &alert)) {
40 FAIL("failed to parse serverhello SNI\n"); 40 FAIL("failed to parse server SNI\n");
41 goto err; 41 goto err;
42@@ -2741,7 +2743,10 @@ 42@@ -2741,7 +2743,10 @@
43 0x03, 0x01, 0x03, 0x03, 0x02, 0x01, 0x02, 0x03, 43 0x03, 0x01, 0x03, 0x03, 0x02, 0x01, 0x02, 0x03,
diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt
index 219d081..7e992d0 100644
--- a/ssl/CMakeLists.txt
+++ b/ssl/CMakeLists.txt
@@ -40,7 +40,6 @@ set(
40 tls13_buffer.c 40 tls13_buffer.c
41 tls13_handshake.c 41 tls13_handshake.c
42 tls13_key_schedule.c 42 tls13_key_schedule.c
43 tls13_tlsext.c
44) 43)
45 44
46add_library(ssl ${SSL_SRC}) 45add_library(ssl ${SSL_SRC})
diff --git a/ssl/Makefile.am b/ssl/Makefile.am
index ffbfc2f..9122a72 100644
--- a/ssl/Makefile.am
+++ b/ssl/Makefile.am
@@ -49,7 +49,6 @@ libssl_la_SOURCES += t1_lib.c
49libssl_la_SOURCES += tls13_buffer.c 49libssl_la_SOURCES += tls13_buffer.c
50libssl_la_SOURCES += tls13_handshake.c 50libssl_la_SOURCES += tls13_handshake.c
51libssl_la_SOURCES += tls13_key_schedule.c 51libssl_la_SOURCES += tls13_key_schedule.c
52libssl_la_SOURCES += tls13_tlsext.c
53 52
54noinst_HEADERS = bytestring.h 53noinst_HEADERS = bytestring.h
55noinst_HEADERS += srtp.h 54noinst_HEADERS += srtp.h
@@ -57,4 +56,4 @@ noinst_HEADERS += ssl_locl.h
57noinst_HEADERS += ssl_sigalgs.h 56noinst_HEADERS += ssl_sigalgs.h
58noinst_HEADERS += ssl_tlsext.h 57noinst_HEADERS += ssl_tlsext.h
59noinst_HEADERS += tls13_internal.h 58noinst_HEADERS += tls13_internal.h
60noinst_HEADERS += tls13_tlsext.h 59noinst_HEADERS += tls13_handshake.h