2025-08-22 10:13:13 +10:00
|
|
|
/* test_tls13.h
|
|
|
|
|
*
|
2026-02-18 09:52:21 -07:00
|
|
|
* Copyright (C) 2006-2026 wolfSSL Inc.
|
2025-08-22 10:13:13 +10:00
|
|
|
*
|
|
|
|
|
* This file is part of wolfSSL.
|
|
|
|
|
*
|
|
|
|
|
* wolfSSL is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* wolfSSL is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef WOLFCRYPT_TEST_TLS13_H
|
|
|
|
|
#define WOLFCRYPT_TEST_TLS13_H
|
|
|
|
|
|
|
|
|
|
#include <tests/api/api_decl.h>
|
|
|
|
|
|
|
|
|
|
int test_tls13_apis(void);
|
|
|
|
|
int test_tls13_cipher_suites(void);
|
|
|
|
|
int test_tls13_bad_psk_binder(void);
|
|
|
|
|
int test_tls13_rpk_handshake(void);
|
|
|
|
|
int test_tls13_pq_groups(void);
|
|
|
|
|
int test_tls13_early_data(void);
|
2025-09-25 16:56:51 +02:00
|
|
|
int test_tls13_same_ch(void);
|
2025-10-24 14:56:13 +02:00
|
|
|
int test_tls13_hrr_different_cs(void);
|
2026-03-20 12:05:10 -06:00
|
|
|
int test_tls13_ch2_different_cs(void);
|
2025-12-12 09:23:02 +10:00
|
|
|
int test_tls13_sg_missing(void);
|
|
|
|
|
int test_tls13_ks_missing(void);
|
2025-12-15 09:34:13 +10:00
|
|
|
int test_tls13_duplicate_extension(void);
|
2026-04-10 08:50:28 -05:00
|
|
|
int test_tls13_duplicate_ech_extension(void);
|
2025-11-24 12:47:40 +10:00
|
|
|
int test_key_share_mismatch(void);
|
2026-02-13 10:28:12 -05:00
|
|
|
int test_tls13_middlebox_compat_empty_session_id(void);
|
2025-11-24 12:47:40 +10:00
|
|
|
int test_tls13_plaintext_alert(void);
|
2026-03-05 12:30:59 +01:00
|
|
|
int test_tls13_warning_alert_is_fatal(void);
|
2026-03-05 16:21:57 +01:00
|
|
|
int test_tls13_unknown_ext_rejected(void);
|
2026-02-24 18:01:32 +01:00
|
|
|
int test_tls13_cert_req_sigalgs(void);
|
2026-03-04 11:30:32 -06:00
|
|
|
int test_tls13_derive_keys_no_key(void);
|
2026-03-27 14:33:41 -04:00
|
|
|
int test_tls13_pqc_hybrid_truncated_keyshare(void);
|
2026-04-10 08:50:28 -05:00
|
|
|
int test_tls13_empty_record_limit(void);
|
2026-03-27 14:33:41 -04:00
|
|
|
int test_tls13_short_session_ticket(void);
|
2026-04-14 15:35:50 +00:00
|
|
|
int test_tls13_early_data_0rtt_replay(void);
|
2026-04-08 15:51:28 +00:00
|
|
|
int test_tls13_corrupted_finished(void);
|
|
|
|
|
int test_tls13_peerauth_failsafe(void);
|
|
|
|
|
int test_tls13_hrr_bad_cookie(void);
|
|
|
|
|
int test_tls13_zero_inner_content_type(void);
|
|
|
|
|
int test_tls13_downgrade_sentinel(void);
|
|
|
|
|
int test_tls13_serverhello_bad_cipher_suites(void);
|
2026-03-26 12:29:38 +01:00
|
|
|
int test_tls13_cert_with_extern_psk_apis(void);
|
|
|
|
|
int test_tls13_cert_with_extern_psk_handshake(void);
|
|
|
|
|
int test_tls13_cert_with_extern_psk_requires_key_share(void);
|
|
|
|
|
int test_tls13_cert_with_extern_psk_rejects_resumption(void);
|
|
|
|
|
int test_tls13_cert_with_extern_psk_sh_missing_key_share(void);
|
|
|
|
|
int test_tls13_cert_with_extern_psk_sh_confirms_resumption(void);
|
2025-08-22 10:13:13 +10:00
|
|
|
|
2025-11-24 12:47:40 +10:00
|
|
|
#define TEST_TLS13_DECLS \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_apis), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_cipher_suites), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_bad_psk_binder), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_rpk_handshake), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_pq_groups), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_early_data), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_same_ch), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_hrr_different_cs), \
|
2026-03-20 12:05:10 -06:00
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_ch2_different_cs), \
|
2025-11-24 12:47:40 +10:00
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_sg_missing), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_ks_missing), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_duplicate_extension), \
|
2026-04-10 08:50:28 -05:00
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_duplicate_ech_extension), \
|
2025-11-24 12:47:40 +10:00
|
|
|
TEST_DECL_GROUP("tls13", test_key_share_mismatch), \
|
2026-02-13 10:28:12 -05:00
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_middlebox_compat_empty_session_id), \
|
2026-02-24 18:01:32 +01:00
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_plaintext_alert), \
|
2026-03-05 12:30:59 +01:00
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_warning_alert_is_fatal), \
|
2026-03-04 11:30:32 -06:00
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_cert_req_sigalgs), \
|
2026-03-27 14:33:41 -04:00
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_derive_keys_no_key), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_pqc_hybrid_truncated_keyshare), \
|
2026-04-10 08:50:28 -05:00
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_empty_record_limit), \
|
2026-03-05 16:21:57 +01:00
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_short_session_ticket), \
|
2026-04-14 15:35:50 +00:00
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_early_data_0rtt_replay), \
|
2026-04-08 15:51:28 +00:00
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_unknown_ext_rejected), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_corrupted_finished), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_peerauth_failsafe), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_hrr_bad_cookie), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_zero_inner_content_type), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_downgrade_sentinel), \
|
2026-03-26 12:29:38 +01:00
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_serverhello_bad_cipher_suites), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_cert_with_extern_psk_apis), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_cert_with_extern_psk_handshake), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_cert_with_extern_psk_requires_key_share), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_cert_with_extern_psk_rejects_resumption), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_cert_with_extern_psk_sh_missing_key_share), \
|
|
|
|
|
TEST_DECL_GROUP("tls13", test_tls13_cert_with_extern_psk_sh_confirms_resumption)
|
2025-08-22 10:13:13 +10:00
|
|
|
|
|
|
|
|
#endif /* WOLFCRYPT_TEST_TLS13_H */
|