-/* $OpenBSD: configtest.c,v 1.3 2023/07/02 06:37:27 beck Exp $ */
+/* $OpenBSD: configtest.c,v 1.4 2024/08/02 15:02:22 tb Exp $ */
/*
* Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
*
{
.protostr = "tlsv1.0:tlsv1.1:tlsv1.2:tlsv1.3",
.want_return = 0,
- .want_protocols = TLS_PROTOCOL_TLSv1_2 | TLS_PROTOCOL_TLSv1_3,
+ .want_protocols = TLS_PROTOCOL_TLSv1_0 | TLS_PROTOCOL_TLSv1_1 |
+ TLS_PROTOCOL_TLSv1_2 | TLS_PROTOCOL_TLSv1_3,
},
{
.protostr = "tlsv1.0,tlsv1.1,tlsv1.2,tlsv1.3",
.want_return = 0,
- .want_protocols = TLS_PROTOCOL_TLSv1_2 | TLS_PROTOCOL_TLSv1_3,
+ .want_protocols = TLS_PROTOCOL_TLSv1_0 | TLS_PROTOCOL_TLSv1_1 |
+ TLS_PROTOCOL_TLSv1_2 | TLS_PROTOCOL_TLSv1_3,
},
{
.protostr = "tlsv1.1,tlsv1.2,tlsv1.0",
.want_return = 0,
- .want_protocols = TLS_PROTOCOL_TLSv1_2,
+ .want_protocols = TLS_PROTOCOL_TLSv1_0 | TLS_PROTOCOL_TLSv1_1 |
+ TLS_PROTOCOL_TLSv1_2,
},
{
.protostr = "tlsv1.1,tlsv1.2,tlsv1.1",
.want_return = 0,
- .want_protocols = TLS_PROTOCOL_TLSv1_2,
+ .want_protocols = TLS_PROTOCOL_TLSv1_1 | TLS_PROTOCOL_TLSv1_2,
},
{
.protostr = "tlsv1.1,tlsv1.2,!tlsv1.1",
.want_return = 0,
- .want_protocols = 0,
+ .want_protocols = TLS_PROTOCOL_TLSv1_2,
},
{
.protostr = "unknown",
{
.protostr = "all,!tlsv1.0",
.want_return = 0,
- .want_protocols = TLS_PROTOCOL_TLSv1_3,
+ .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_3,
+ .want_protocols = TLS_PROTOCOL_TLSv1_1 | TLS_PROTOCOL_TLSv1_2 | \
+ TLS_PROTOCOL_TLSv1_3,
},
{
.protostr = "!tlsv1.0,!tlsv1.1,!tlsv1.3",
.want_return = 0,
- .want_protocols = 0,
+ .want_protocols = TLS_PROTOCOL_TLSv1_2,
},
{
.protostr = "!tlsv1.0,!tlsv1.1,tlsv1.2,!tlsv1.3",
-/* $OpenBSD: tlstest.c,v 1.15 2022/07/16 07:46:08 tb Exp $ */
+/* $OpenBSD: tlstest.c,v 1.16 2024/08/02 15:02:22 tb Exp $ */
/*
* Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
*
static struct test_versions tls_test_versions[] = {
{"tlsv1.3", "all"},
{"tlsv1.2", "all"},
- {"tlsv1.1", "all"},
- {"tlsv1.0", "all"},
{"all", "tlsv1.3"},
{"all", "tlsv1.2"},
- {"all", "tlsv1.1"},
- {"all", "tlsv1.0"},
+ {"all:!tlsv1.1", "tlsv1.2"},
+ {"all:!tlsv1.2", "tlsv1.3"},
+ {"all:!tlsv1.3", "tlsv1.2"},
+ {"all:!tlsv1.2:!tlsv1.1", "tlsv1.3"},
+ {"all:!tlsv1.2:!tlsv1.1:!tlsv1.0", "tlsv1.3"},
{"tlsv1.3", "tlsv1.3"},
{"tlsv1.2", "tlsv1.2"},
- {"tlsv1.1", "tlsv1.1"},
- {"tlsv1.0", "tlsv1.0"},
};
#define N_TLS_VERSION_TESTS \