summaryrefslogtreecommitdiff
path: root/src/regress/lib
diff options
context:
space:
mode:
authorjsing <>2020-01-20 08:40:16 +0000
committerjsing <>2020-01-20 08:40:16 +0000
commit101a098151714705f06800dd03668b1d84167aa1 (patch)
tree9e58074c2297a4029295abe59125de14efda229d /src/regress/lib
parent9ea343cf6ccda35b4aa4c4e74dd80b7a59029076 (diff)
downloadopenbsd-101a098151714705f06800dd03668b1d84167aa1.tar.gz
openbsd-101a098151714705f06800dd03668b1d84167aa1.tar.bz2
openbsd-101a098151714705f06800dd03668b1d84167aa1.zip
Update libtls config regress to include TLSv1.3.
Diffstat (limited to 'src/regress/lib')
-rw-r--r--src/regress/lib/libtls/config/configtest.c25
1 files changed, 16 insertions, 9 deletions
diff --git a/src/regress/lib/libtls/config/configtest.c b/src/regress/lib/libtls/config/configtest.c
index 61474aa85c..47aa03e826 100644
--- a/src/regress/lib/libtls/config/configtest.c
+++ b/src/regress/lib/libtls/config/configtest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: configtest.c,v 1.1 2017/12/09 16:43:09 jsing Exp $ */ 1/* $OpenBSD: configtest.c,v 1.2 2020/01/20 08:40:16 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -59,21 +59,26 @@ struct parse_protocols_test parse_protocols_tests[] = {
59 .want_protocols = TLS_PROTOCOL_TLSv1_2, 59 .want_protocols = TLS_PROTOCOL_TLSv1_2,
60 }, 60 },
61 { 61 {
62 .protostr = "tlsv1.3",
63 .want_return = 0,
64 .want_protocols = TLS_PROTOCOL_TLSv1_3,
65 },
66 {
62 .protostr = "", 67 .protostr = "",
63 .want_return = -1, 68 .want_return = -1,
64 .want_protocols = 0, 69 .want_protocols = 0,
65 }, 70 },
66 { 71 {
67 .protostr = "tlsv1.0:tlsv1.1:tlsv1.2", 72 .protostr = "tlsv1.0:tlsv1.1:tlsv1.2:tlsv1.3",
68 .want_return = 0, 73 .want_return = 0,
69 .want_protocols = TLS_PROTOCOL_TLSv1_0 | TLS_PROTOCOL_TLSv1_1 | 74 .want_protocols = TLS_PROTOCOL_TLSv1_0 | TLS_PROTOCOL_TLSv1_1 |
70 TLS_PROTOCOL_TLSv1_2, 75 TLS_PROTOCOL_TLSv1_2 | TLS_PROTOCOL_TLSv1_3,
71 }, 76 },
72 { 77 {
73 .protostr = "tlsv1.0,tlsv1.1,tlsv1.2", 78 .protostr = "tlsv1.0,tlsv1.1,tlsv1.2,tlsv1.3",
74 .want_return = 0, 79 .want_return = 0,
75 .want_protocols = TLS_PROTOCOL_TLSv1_0 | TLS_PROTOCOL_TLSv1_1 | 80 .want_protocols = TLS_PROTOCOL_TLSv1_0 | TLS_PROTOCOL_TLSv1_1 |
76 TLS_PROTOCOL_TLSv1_2, 81 TLS_PROTOCOL_TLSv1_2 | TLS_PROTOCOL_TLSv1_3,
77 }, 82 },
78 { 83 {
79 .protostr = "tlsv1.1,tlsv1.2,tlsv1.0", 84 .protostr = "tlsv1.1,tlsv1.2,tlsv1.0",
@@ -109,20 +114,22 @@ struct parse_protocols_test parse_protocols_tests[] = {
109 { 114 {
110 .protostr = "all,!tlsv1.0", 115 .protostr = "all,!tlsv1.0",
111 .want_return = 0, 116 .want_return = 0,
112 .want_protocols = TLS_PROTOCOL_TLSv1_1 | TLS_PROTOCOL_TLSv1_2, 117 .want_protocols = TLS_PROTOCOL_TLSv1_1 | TLS_PROTOCOL_TLSv1_2 | \
118 TLS_PROTOCOL_TLSv1_3,
113 }, 119 },
114 { 120 {
115 .protostr = "!tlsv1.0", 121 .protostr = "!tlsv1.0",
116 .want_return = 0, 122 .want_return = 0,
117 .want_protocols = TLS_PROTOCOL_TLSv1_1 | TLS_PROTOCOL_TLSv1_2, 123 .want_protocols = TLS_PROTOCOL_TLSv1_1 | TLS_PROTOCOL_TLSv1_2 | \
124 TLS_PROTOCOL_TLSv1_3,
118 }, 125 },
119 { 126 {
120 .protostr = "!tlsv1.0,!tlsv1.1", 127 .protostr = "!tlsv1.0,!tlsv1.1,!tlsv1.3",
121 .want_return = 0, 128 .want_return = 0,
122 .want_protocols = TLS_PROTOCOL_TLSv1_2, 129 .want_protocols = TLS_PROTOCOL_TLSv1_2,
123 }, 130 },
124 { 131 {
125 .protostr = "!tlsv1.0,!tlsv1.1,tlsv1.2", 132 .protostr = "!tlsv1.0,!tlsv1.1,tlsv1.2,!tlsv1.3",
126 .want_return = 0, 133 .want_return = 0,
127 .want_protocols = TLS_PROTOCOL_TLSv1_2, 134 .want_protocols = TLS_PROTOCOL_TLSv1_2,
128 }, 135 },