#include "syshead.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <setjmp.h>
#include <cmocka.h>
#include "ssl_util.h"
#include "options_util.h"
#include "test_common.h"
#include "list.h"
Go to the source code of this file.
◆ get_random()
static unsigned long get_random |
( |
void |
| ) |
|
|
static |
◆ hash_lookup_by_value()
static struct hash_element* hash_lookup_by_value |
( |
struct hash * |
hash, |
|
|
void * |
value |
|
) |
| |
|
static |
◆ main()
◆ test_auth_fail_temp_flags()
static void test_auth_fail_temp_flags |
( |
void ** |
state | ) |
|
|
static |
◆ test_auth_fail_temp_flags_msg()
static void test_auth_fail_temp_flags_msg |
( |
void ** |
state | ) |
|
|
static |
◆ test_auth_fail_temp_no_flags()
static void test_auth_fail_temp_no_flags |
( |
void ** |
state | ) |
|
|
static |
◆ test_compat_lzo_string()
static void test_compat_lzo_string |
( |
void ** |
state | ) |
|
|
static |
◆ test_list()
static void test_list |
( |
void ** |
state | ) |
|
|
static |
Definition at line 162 of file test_misc.c.
References ALLOC_OBJ_GC, ASSERT, 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().
◆ word_compare_function()
static bool word_compare_function |
( |
const void * |
key1, |
|
|
const void * |
key2 |
|
) |
| |
|
static |
◆ word_hash_function()
static uint32_t word_hash_function |
( |
const void * |
key, |
|
|
uint32_t |
iv |
|
) |
| |
|
static |
◆ misc_tests
const struct CMUnitTest misc_tests[] |