diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2020-01-20 08:40:17 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2020-01-20 08:40:17 +0000 |
commit | 8010b8631897e36946a7825cf93156efcdd0b39a (patch) | |
tree | 416d5ac88e0f10f569d2ec7457add330100988b1 /regress | |
parent | 59ece2331f637cbf003fb26d15a5569bfe2f2fd5 (diff) |
Update libtls config regress to include TLSv1.3.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libtls/config/configtest.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/regress/lib/libtls/config/configtest.c b/regress/lib/libtls/config/configtest.c index 61474aa85c9..47aa03e8260 100644 --- a/regress/lib/libtls/config/configtest.c +++ b/regress/lib/libtls/config/configtest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: configtest.c,v 1.1 2017/12/09 16:43:09 jsing Exp $ */ +/* $OpenBSD: configtest.c,v 1.2 2020/01/20 08:40:16 jsing Exp $ */ /* * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> * @@ -59,21 +59,26 @@ struct parse_protocols_test parse_protocols_tests[] = { .want_protocols = TLS_PROTOCOL_TLSv1_2, }, { + .protostr = "tlsv1.3", + .want_return = 0, + .want_protocols = TLS_PROTOCOL_TLSv1_3, + }, + { .protostr = "", .want_return = -1, .want_protocols = 0, }, { - .protostr = "tlsv1.0:tlsv1.1:tlsv1.2", + .protostr = "tlsv1.0:tlsv1.1:tlsv1.2:tlsv1.3", .want_return = 0, .want_protocols = TLS_PROTOCOL_TLSv1_0 | TLS_PROTOCOL_TLSv1_1 | - TLS_PROTOCOL_TLSv1_2, + TLS_PROTOCOL_TLSv1_2 | TLS_PROTOCOL_TLSv1_3, }, { - .protostr = "tlsv1.0,tlsv1.1,tlsv1.2", + .protostr = "tlsv1.0,tlsv1.1,tlsv1.2,tlsv1.3", .want_return = 0, .want_protocols = TLS_PROTOCOL_TLSv1_0 | TLS_PROTOCOL_TLSv1_1 | - TLS_PROTOCOL_TLSv1_2, + TLS_PROTOCOL_TLSv1_2 | TLS_PROTOCOL_TLSv1_3, }, { .protostr = "tlsv1.1,tlsv1.2,tlsv1.0", @@ -109,20 +114,22 @@ struct parse_protocols_test parse_protocols_tests[] = { { .protostr = "all,!tlsv1.0", .want_return = 0, - .want_protocols = TLS_PROTOCOL_TLSv1_1 | TLS_PROTOCOL_TLSv1_2, + .want_protocols = TLS_PROTOCOL_TLSv1_1 | TLS_PROTOCOL_TLSv1_2 | \ + TLS_PROTOCOL_TLSv1_3, }, { .protostr = "!tlsv1.0", .want_return = 0, - .want_protocols = TLS_PROTOCOL_TLSv1_1 | TLS_PROTOCOL_TLSv1_2, + .want_protocols = TLS_PROTOCOL_TLSv1_1 | TLS_PROTOCOL_TLSv1_2 | \ + TLS_PROTOCOL_TLSv1_3, }, { - .protostr = "!tlsv1.0,!tlsv1.1", + .protostr = "!tlsv1.0,!tlsv1.1,!tlsv1.3", .want_return = 0, .want_protocols = TLS_PROTOCOL_TLSv1_2, }, { - .protostr = "!tlsv1.0,!tlsv1.1,tlsv1.2", + .protostr = "!tlsv1.0,!tlsv1.1,tlsv1.2,!tlsv1.3", .want_return = 0, .want_protocols = TLS_PROTOCOL_TLSv1_2, }, |