Add tests for DTLSv1_2{,_client,_server}_method()
authortb <tb@openbsd.org>
Sun, 4 Apr 2021 20:16:29 +0000 (20:16 +0000)
committertb <tb@openbsd.org>
Sun, 4 Apr 2021 20:16:29 +0000 (20:16 +0000)
regress/lib/libssl/unit/ssl_methods.c

index 163d22c..216ba93 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: ssl_methods.c,v 1.2 2020/12/01 08:05:06 tb Exp $ */
+/*     $OpenBSD: ssl_methods.c,v 1.3 2021/04/04 20:16:29 tb Exp $ */
 /*
  * Copyright (c) 2020 Theo Buehler <tb@openbsd.org>
  *
@@ -141,6 +141,25 @@ struct ssl_method_test_data ssl_method_tests[] = {
                .dtls = 1,
        },
 
+       {
+               .method = DTLSv1_2_method,
+               .name = "DTLSv1_2_method",
+               .server = 1,
+               .dtls = 1,
+       },
+       {
+               .method = DTLSv1_2_server_method,
+               .name = "DTLSv1_2_server_method",
+               .server = 1,
+               .dtls = 1,
+       },
+       {
+               .method = DTLSv1_2_client_method,
+               .name = "DTLSv1_2_client_method",
+               .server = 0,
+               .dtls = 1,
+       },
+
        {
                .method = DTLS_method,
                .name = "DTLS_method",