diff options
author | jsing <> | 2020-02-16 17:03:58 +0000 |
---|---|---|
committer | jsing <> | 2020-02-16 17:03:58 +0000 |
commit | 1063aaa9b7543a856d9a9d5695ced92c74ca1d76 (patch) | |
tree | 90ce509761bf046ff45e4b73ca19501713f39881 /src/regress/lib | |
parent | 5c10d8250250eed0abef10eabb0e9ae0cf1fe8c8 (diff) | |
download | openbsd-1063aaa9b7543a856d9a9d5695ced92c74ca1d76.tar.gz openbsd-1063aaa9b7543a856d9a9d5695ced92c74ca1d76.tar.bz2 openbsd-1063aaa9b7543a856d9a9d5695ced92c74ca1d76.zip |
Update protocol version test to include TLSv1.3.
Diffstat (limited to 'src/regress/lib')
-rw-r--r-- | src/regress/lib/libtls/gotls/tls.go | 2 | ||||
-rw-r--r-- | src/regress/lib/libtls/gotls/tls_test.go | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/regress/lib/libtls/gotls/tls.go b/src/regress/lib/libtls/gotls/tls.go index dbd3b717b0..cf3e84c030 100644 --- a/src/regress/lib/libtls/gotls/tls.go +++ b/src/regress/lib/libtls/gotls/tls.go | |||
@@ -40,6 +40,7 @@ const ( | |||
40 | ProtocolTLSv10 ProtocolVersion = C.TLS_PROTOCOL_TLSv1_0 | 40 | ProtocolTLSv10 ProtocolVersion = C.TLS_PROTOCOL_TLSv1_0 |
41 | ProtocolTLSv11 ProtocolVersion = C.TLS_PROTOCOL_TLSv1_1 | 41 | ProtocolTLSv11 ProtocolVersion = C.TLS_PROTOCOL_TLSv1_1 |
42 | ProtocolTLSv12 ProtocolVersion = C.TLS_PROTOCOL_TLSv1_2 | 42 | ProtocolTLSv12 ProtocolVersion = C.TLS_PROTOCOL_TLSv1_2 |
43 | ProtocolTLSv13 ProtocolVersion = C.TLS_PROTOCOL_TLSv1_3 | ||
43 | ProtocolsAll ProtocolVersion = C.TLS_PROTOCOLS_ALL | 44 | ProtocolsAll ProtocolVersion = C.TLS_PROTOCOLS_ALL |
44 | ) | 45 | ) |
45 | 46 | ||
@@ -47,6 +48,7 @@ var protocolNames = map[ProtocolVersion]string{ | |||
47 | ProtocolTLSv10: "TLSv1", | 48 | ProtocolTLSv10: "TLSv1", |
48 | ProtocolTLSv11: "TLSv1.1", | 49 | ProtocolTLSv11: "TLSv1.1", |
49 | ProtocolTLSv12: "TLSv1.2", | 50 | ProtocolTLSv12: "TLSv1.2", |
51 | ProtocolTLSv13: "TLSv1.3", | ||
50 | ProtocolsAll: "all", | 52 | ProtocolsAll: "all", |
51 | } | 53 | } |
52 | 54 | ||
diff --git a/src/regress/lib/libtls/gotls/tls_test.go b/src/regress/lib/libtls/gotls/tls_test.go index 1a9f62eff8..be880e138c 100644 --- a/src/regress/lib/libtls/gotls/tls_test.go +++ b/src/regress/lib/libtls/gotls/tls_test.go | |||
@@ -185,6 +185,7 @@ func TestTLSVersions(t *testing.T) { | |||
185 | wantVersion ProtocolVersion | 185 | wantVersion ProtocolVersion |
186 | wantHandshakeErr bool | 186 | wantHandshakeErr bool |
187 | }{ | 187 | }{ |
188 | {tls.VersionTLS10, tls.VersionTLS13, ProtocolTLSv13, false}, | ||
188 | {tls.VersionSSL30, tls.VersionTLS12, ProtocolTLSv12, false}, | 189 | {tls.VersionSSL30, tls.VersionTLS12, ProtocolTLSv12, false}, |
189 | {tls.VersionTLS10, tls.VersionTLS12, ProtocolTLSv12, false}, | 190 | {tls.VersionTLS10, tls.VersionTLS12, ProtocolTLSv12, false}, |
190 | {tls.VersionTLS11, tls.VersionTLS12, ProtocolTLSv12, false}, | 191 | {tls.VersionTLS11, tls.VersionTLS12, ProtocolTLSv12, false}, |