tls-peer: Mutual authentication support for TLS 1.3
[strongswan.git] / src / libtls / tests / suites / test_socket.c
index 01883b5..de1b516 100644 (file)
@@ -665,6 +665,12 @@ START_TEST(test_tls13)
 }
 END_TEST
 
+START_TEST(test_tls13_mutual)
+{
+       test_tls(TLS_1_3, 5670, TRUE, _i);
+}
+END_TEST
+
 START_TEST(test_tls12)
 {
        test_tls(TLS_1_2, 5671, FALSE, _i);
@@ -741,6 +747,11 @@ Suite *socket_suite_create()
        add_tls_test(test_tls13, TLS_1_3);
        suite_add_tcase(s, tc);
 
+       tc = tcase_create("TLS 1.3/mutl");
+       tcase_add_checked_fixture(tc, setup_creds, teardown_creds);
+       add_tls_test(test_tls13_mutual, TLS_1_3);
+       suite_add_tcase(s, tc);
+
        tc = tcase_create("TLS 1.2/anon");
        tcase_add_checked_fixture(tc, setup_creds, teardown_creds);
        add_tls_test(test_tls12, TLS_1_2);