| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
#include "s2n_test.h" |
| 17 |
#include "testlib/s2n_testlib.h" |
| 18 |
#include "tls/s2n_ktls.h" |
| 19 |
|
| 20 |
int main(int argc, char **argv) |
| 21 |
{ |
| 22 |
BEGIN_TEST(); |
| 23 |
|
| 24 |
|
| 25 |
{ |
| 26 |
DEFER_CLEANUP(struct s2n_connection *conn = s2n_connection_new(S2N_CLIENT), |
| 27 |
s2n_connection_ptr_free); |
| 28 |
EXPECT_NOT_NULL(conn); |
| 29 |
DEFER_CLEANUP(struct s2n_test_io_pair io_pair = { 0 }, s2n_io_pair_close); |
| 30 |
EXPECT_SUCCESS(s2n_io_pair_init_non_blocking(&io_pair)); |
| 31 |
EXPECT_SUCCESS(s2n_connection_set_io_pair(conn, &io_pair)); |
| 32 |
|
| 33 |
EXPECT_FALSE(conn->ktls_recv_enabled); |
| 34 |
EXPECT_FALSE(conn->ktls_send_enabled); |
| 35 |
}; |
| 36 |
|
| 37 |
END_TEST(); |
| 38 |
} |