diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2020-02-16 17:03:59 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2020-02-16 17:03:59 +0000 |
commit | c8bc9f16b581222ba4084be3b77a0b0ce40ca2e2 (patch) | |
tree | c33c92b721f8d1f9dea3b4b9fdaa0cc4a3a544e8 | |
parent | a228d30fa8d8fcedb009ac79a83acb510d1479ad (diff) |
Update protocol version test to include TLSv1.3.
-rw-r--r-- | regress/lib/libtls/gotls/tls.go | 2 | ||||
-rw-r--r-- | regress/lib/libtls/gotls/tls_test.go | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/regress/lib/libtls/gotls/tls.go b/regress/lib/libtls/gotls/tls.go index dbd3b717b06..cf3e84c0309 100644 --- a/regress/lib/libtls/gotls/tls.go +++ b/regress/lib/libtls/gotls/tls.go @@ -40,6 +40,7 @@ const ( ProtocolTLSv10 ProtocolVersion = C.TLS_PROTOCOL_TLSv1_0 ProtocolTLSv11 ProtocolVersion = C.TLS_PROTOCOL_TLSv1_1 ProtocolTLSv12 ProtocolVersion = C.TLS_PROTOCOL_TLSv1_2 + ProtocolTLSv13 ProtocolVersion = C.TLS_PROTOCOL_TLSv1_3 ProtocolsAll ProtocolVersion = C.TLS_PROTOCOLS_ALL ) @@ -47,6 +48,7 @@ var protocolNames = map[ProtocolVersion]string{ ProtocolTLSv10: "TLSv1", ProtocolTLSv11: "TLSv1.1", ProtocolTLSv12: "TLSv1.2", + ProtocolTLSv13: "TLSv1.3", ProtocolsAll: "all", } diff --git a/regress/lib/libtls/gotls/tls_test.go b/regress/lib/libtls/gotls/tls_test.go index 1a9f62eff8f..be880e138c7 100644 --- a/regress/lib/libtls/gotls/tls_test.go +++ b/regress/lib/libtls/gotls/tls_test.go @@ -185,6 +185,7 @@ func TestTLSVersions(t *testing.T) { wantVersion ProtocolVersion wantHandshakeErr bool }{ + {tls.VersionTLS10, tls.VersionTLS13, ProtocolTLSv13, false}, {tls.VersionSSL30, tls.VersionTLS12, ProtocolTLSv12, false}, {tls.VersionTLS10, tls.VersionTLS12, ProtocolTLSv12, false}, {tls.VersionTLS11, tls.VersionTLS12, ProtocolTLSv12, false}, |