|
OpenVPN
|
#include "syshead.h"#include <stdarg.h>#include <stddef.h>#include <setjmp.h>#include <cmocka.h>#include "control_msg.h"#include "ssl_pkt.h"#include "test_common.h"#include "test_control_msg.h"
Go to the source code of this file.
Functions | |
| void | test_tlv_write_u16_wire_format (void **state) |
| void | test_tlv_header_roundtrip (void **state) |
| void | test_tlv_next_walks_payload (void **state) |
| void | test_tlv_next_value_truncated (void **state) |
| void | test_tlv_header_truncated (void **state) |
| void | test_tlv_write_no_room (void **state) |
| void test_tlv_header_roundtrip | ( | void ** | state | ) |
Definition at line 65 of file test_control_msg.c.
References alloc_buf_gc(), BLEN, CTRL_MSG_TLV_HEADER_LEN, ctrl_msg_tlv_peek_header(), ctrl_msg_tlv_write_header(), gc, gc_free(), gc_new(), ctrl_msg_tlv_header::optional, ctrl_msg_tlv_header::type, and ctrl_msg_tlv_header::value_len.
Referenced by main().
| void test_tlv_header_truncated | ( | void ** | state | ) |
Definition at line 143 of file test_control_msg.c.
References alloc_buf_gc(), BLEN, buf_write(), ctrl_msg_tlv_next(), ctrl_msg_tlv_peek_header(), gc, gc_free(), and gc_new().
Referenced by main().
| void test_tlv_next_value_truncated | ( | void ** | state | ) |
Definition at line 123 of file test_control_msg.c.
References alloc_buf_gc(), BLEN, buf_write_u32(), CTRL_MSG_TLV_HEADER_LEN, ctrl_msg_tlv_next(), ctrl_msg_tlv_write_header(), gc, gc_free(), gc_new(), and TLV_TYPE_EARLY_NEG_FLAGS.
Referenced by main().
| void test_tlv_next_walks_payload | ( | void ** | state | ) |
Definition at line 86 of file test_control_msg.c.
References alloc_buf_gc(), BLEN, buf_read_u16(), buf_read_u32(), buf_write_u32(), ctrl_msg_tlv_next(), ctrl_msg_tlv_write_header(), ctrl_msg_tlv_write_u16(), gc, gc_free(), gc_new(), ctrl_msg_tlv_header::optional, TLV_TYPE_EARLY_NEG_FLAGS, and ctrl_msg_tlv_header::type.
Referenced by main().
| void test_tlv_write_no_room | ( | void ** | state | ) |
Definition at line 167 of file test_control_msg.c.
References alloc_buf_gc(), BLEN, ctrl_msg_tlv_write_header(), ctrl_msg_tlv_write_u16(), gc, gc_free(), gc_new(), and TLV_TYPE_EARLY_NEG_FLAGS.
Referenced by main().
| void test_tlv_write_u16_wire_format | ( | void ** | state | ) |
Definition at line 42 of file test_control_msg.c.
References alloc_buf_gc(), BLEN, BPTR, buf_clear(), ctrl_msg_tlv_write_u16(), EARLY_NEG_FLAG_RESEND_WKC, gc, gc_free(), gc_new(), and TLV_TYPE_EARLY_NEG_FLAGS.
Referenced by main().