|
OpenVPN
|
#include "syshead.h"#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <setjmp.h>#include <cmocka.h>#include <siphash.h>#include "ssl_util.h"#include "options_util.h"#include "test_common.h"#include "list.h"#include "mock_msg.h"#include "crypto.h"#include "win32-util.h"#include "test_schedule.h"
Go to the source code of this file.
Data Structures | |
| struct | word |
Functions | |
| static void | test_compat_lzo_string (void **state) |
| static void | test_auth_fail_temp_no_flags (void **state) |
| static void | test_auth_fail_temp_flags (void **state) |
| static void | test_auth_fail_temp_flags_msg (void **state) |
| static uint64_t | word_hash_function (const void *key, const uint8_t hash_key[HASH_KEY_LEN]) |
| static bool | word_compare_function (const void *key1, const void *key2) |
| static struct hash_element * | hash_lookup_by_value (struct hash *hash, void *value) |
| static void | test_list (void **state) |
| static void | test_atoi_variants (void **state) |
| static void | test_win_path_in_dir (void **state) |
| int | main (void) |
Variables | |
| const struct CMUnitTest | misc_tests [] |
|
static |
Definition at line 149 of file test_misc.c.
References hash_iterator_free(), hash_iterator_init(), hash_iterator_next(), and hash_element::value.
Referenced by test_list().
| int main | ( | void | ) |
Definition at line 492 of file test_misc.c.
References misc_tests, and openvpn_unit_test_setup().
|
static |
Definition at line 319 of file test_misc.c.
References atoi_constrained(), atoi_warn(), CLEAR, D_LOW, mock_get_debug_level(), mock_msg_buf, mock_set_debug_level(), positive_atoi(), positive_atoll(), and valid_integer().
|
static |
Definition at line 102 of file test_misc.c.
References msg, options::no_advance, parse_auth_failed_temp(), and options::server_backoff_time.
|
static |
Definition at line 115 of file test_misc.c.
References msg, parse_auth_failed_temp(), and options::server_backoff_time.
|
static |
Definition at line 91 of file test_misc.c.
References msg, and parse_auth_failed_temp().
|
static |
Definition at line 50 of file test_misc.c.
References gc, gc_free(), gc_new(), and options_string_compat_lzo().
|
static |
Definition at line 168 of file test_misc.c.
References ALLOC_OBJ_GC, ASSERT, gc, gc_free(), gc_new(), get_random(), hash_add(), hash_free(), hash_init(), hash_iterator_free(), hash_iterator_init_range(), hash_iterator_next(), hash_lookup(), hash_lookup_by_value(), hash_n_buckets(), hash_n_elements(), hash_remove(), hash_remove_by_value(), hash::mask, word::n, hash::n_buckets, openvpn_test_get_srcdir_dir(), random, string_alloc(), hash_element::value, word::word, word_compare_function(), and word_hash_function().
|
static |
Definition at line 449 of file test_misc.c.
References win_path_in_dir().
|
static |
Definition at line 143 of file test_misc.c.
Referenced by test_list().
|
static |
Definition at line 135 of file test_misc.c.
References siphash_hash_func().
Referenced by test_list().
| const struct CMUnitTest misc_tests[] |
Definition at line 478 of file test_misc.c.
Referenced by main().