OpenVPN
|
#include "syshead.h"
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <setjmp.h>
#include <cmocka.h>
#include "ssl_ncp.c"
Go to the source code of this file.
Functions | |
static void | test_check_ncp_ciphers_list (void **state) |
static void | test_extract_client_ciphers (void **state) |
static void | test_poor_man (void **state) |
static void | test_ncp_best (void **state) |
int | main (void) |
Variables | |
const char * | bf_chacha = "BF-CBC:CHACHA20-POLY1305" |
const char * | aes_ciphers = "AES-256-GCM:AES-128-GCM" |
const struct CMUnitTest | ncp_tests [] |
int main | ( | void | ) |
Definition at line 235 of file test_ncp.c.
References cmocka_run_group_tests.
|
static |
Definition at line 48 of file test_ncp.c.
References aes_ciphers, assert_ptr_equal, assert_string_equal, bf_chacha, cipher_kt_get(), gc_free(), gc_new(), and mutate_ncp_cipher_list().
|
static |
Definition at line 99 of file test_ncp.c.
References aes_ciphers, assert_false, assert_string_equal, assert_true, gc_free(), gc_new(), tls_peer_ncp_list(), and tls_peer_supports_ncp().
|
static |
Definition at line 187 of file test_ncp.c.
References assert_string_equal, gc_free(), gc_new(), and ncp_get_best_cipher().
|
static |
Definition at line 138 of file test_ncp.c.
References assert_ptr_equal, assert_string_equal, gc_free(), gc_new(), and ncp_get_best_cipher().
const char* aes_ciphers = "AES-256-GCM:AES-128-GCM" |
Definition at line 45 of file test_ncp.c.
Referenced by test_check_ncp_ciphers_list(), and test_extract_client_ciphers().
const char* bf_chacha = "BF-CBC:CHACHA20-POLY1305" |
Definition at line 44 of file test_ncp.c.
Referenced by test_check_ncp_ciphers_list().
const struct CMUnitTest ncp_tests[] |
Definition at line 226 of file test_ncp.c.