Improve test coverage for SSL_OP_NO_DTLSv1.
authorjsing <jsing@openbsd.org>
Sun, 27 Jun 2021 16:54:55 +0000 (16:54 +0000)
committerjsing <jsing@openbsd.org>
Sun, 27 Jun 2021 16:54:55 +0000 (16:54 +0000)
regress/lib/libssl/unit/ssl_versions.c

index 7ddc0e4..2ca7215 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_versions.c,v 1.14 2021/03/17 17:43:31 jsing Exp $ */
+/* $OpenBSD: ssl_versions.c,v 1.15 2021/06/27 16:54:55 jsing Exp $ */
 /*
  * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org>
  *
@@ -462,6 +462,14 @@ static struct shared_version_test shared_version_tests[] = {
                .peerver = DTLS1_VERSION,
                .want_maxver = 0,
        },
+       {
+               .ssl_method = DTLS_method,
+               .options = SSL_OP_NO_DTLSv1,
+               .minver = TLS1_1_VERSION,
+               .maxver = TLS1_2_VERSION,
+               .peerver = DTLS1_2_VERSION,
+               .want_maxver = DTLS1_2_VERSION,
+       },
        {
                .ssl_method = DTLS_method,
                .options = SSL_OP_NO_DTLSv1_2,