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/libtls/gotls/tls.go | |
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/libtls/gotls/tls.go')
-rw-r--r-- | src/regress/lib/libtls/gotls/tls.go | 2 |
1 files changed, 2 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 | ||