2025-02-12 14:57:00 -08:00
|
|
|
/* test_dtls.h
|
2025-02-10 13:57:06 +01:00
|
|
|
*
|
|
|
|
|
* Copyright (C) 2006-2025 wolfSSL Inc.
|
|
|
|
|
*
|
|
|
|
|
* 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
|
2025-07-10 16:01:52 -06:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2025-02-10 13:57:06 +01:00
|
|
|
* (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 TESTS_API_DTLS_H
|
|
|
|
|
#define TESTS_API_DTLS_H
|
|
|
|
|
|
|
|
|
|
int test_dtls12_basic_connection_id(void);
|
|
|
|
|
int test_dtls13_basic_connection_id(void);
|
2025-10-22 11:53:32 +02:00
|
|
|
int test_dtls13_hrr_want_write(void);
|
2025-10-22 12:47:42 +02:00
|
|
|
int test_dtls13_every_write_want_write(void);
|
2025-02-10 13:57:06 +01:00
|
|
|
int test_wolfSSL_dtls_cid_parse(void);
|
2025-06-05 22:34:38 +02:00
|
|
|
int test_wolfSSL_dtls_set_pending_peer(void);
|
2025-04-02 16:16:32 +02:00
|
|
|
int test_dtls13_epochs(void);
|
2025-04-17 16:35:32 +02:00
|
|
|
int test_dtls13_ack_order(void);
|
2025-05-15 19:31:02 +02:00
|
|
|
int test_dtls_version_checking(void);
|
2025-05-13 16:42:50 +02:00
|
|
|
int test_dtls_short_ciphertext(void);
|
|
|
|
|
int test_dtls12_record_length_mismatch(void);
|
|
|
|
|
int test_dtls12_short_read(void);
|
|
|
|
|
int test_dtls13_longer_length(void);
|
|
|
|
|
int test_dtls13_short_read(void);
|
|
|
|
|
int test_records_span_network_boundaries(void);
|
|
|
|
|
int test_dtls_record_cross_boundaries(void);
|
2025-06-09 01:21:56 +02:00
|
|
|
int test_dtls_rtx_across_epoch_change(void);
|
2025-06-16 09:19:59 +02:00
|
|
|
int test_dtls_drop_client_ack(void);
|
2025-09-16 18:21:08 +02:00
|
|
|
int test_dtls_bogus_finished_epoch_zero(void);
|
2025-08-07 14:12:42 +02:00
|
|
|
int test_dtls_replay(void);
|
2025-09-29 18:27:36 +02:00
|
|
|
int test_dtls_srtp(void);
|
2025-10-01 13:21:28 +02:00
|
|
|
int test_dtls_timeout(void);
|
2025-10-03 15:32:39 +02:00
|
|
|
int test_dtls_certreq_order(void);
|
2025-11-06 17:05:06 +01:00
|
|
|
int test_dtls_memio_wolfio(void);
|
|
|
|
|
int test_dtls_memio_wolfio_stateless(void);
|
2025-12-15 17:32:52 +01:00
|
|
|
int test_dtls_mtu_fragment_headroom(void);
|
2025-12-22 13:40:31 +01:00
|
|
|
int test_dtls_mtu_split_messages(void);
|
2025-10-03 15:32:39 +02:00
|
|
|
|
|
|
|
|
#define TEST_DTLS_DECLS \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls12_basic_connection_id), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls13_basic_connection_id), \
|
2025-10-22 11:53:32 +02:00
|
|
|
TEST_DECL_GROUP("dtls", test_dtls13_hrr_want_write), \
|
2025-10-22 12:47:42 +02:00
|
|
|
TEST_DECL_GROUP("dtls", test_dtls13_every_write_want_write), \
|
2025-10-03 15:32:39 +02:00
|
|
|
TEST_DECL_GROUP("dtls", test_wolfSSL_dtls_cid_parse), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_wolfSSL_dtls_set_pending_peer), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls13_epochs), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls13_ack_order), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls_version_checking), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls_short_ciphertext), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls12_record_length_mismatch), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls12_short_read), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls13_longer_length), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls13_short_read), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_records_span_network_boundaries), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls_record_cross_boundaries), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls_rtx_across_epoch_change), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls_drop_client_ack), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls_bogus_finished_epoch_zero), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls_replay), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls_srtp), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls_certreq_order), \
|
2025-11-06 17:05:06 +01:00
|
|
|
TEST_DECL_GROUP("dtls", test_dtls_timeout), \
|
|
|
|
|
TEST_DECL_GROUP("dtls", test_dtls_memio_wolfio), \
|
2025-12-15 17:32:52 +01:00
|
|
|
TEST_DECL_GROUP("dtls", test_dtls_mtu_fragment_headroom), \
|
2025-12-22 13:40:31 +01:00
|
|
|
TEST_DECL_GROUP("dtls", test_dtls_mtu_split_messages), \
|
2025-11-06 17:05:06 +01:00
|
|
|
TEST_DECL_GROUP("dtls", test_dtls_memio_wolfio_stateless)
|
2025-02-10 13:57:06 +01:00
|
|
|
#endif /* TESTS_API_DTLS_H */
|