OpenVPN
|
#include "syshead.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <setjmp.h>
#include <cmocka.h>
#include "crypto.h"
#include "options.h"
#include "ssl_backend.h"
#include "options_util.h"
#include "mock_msg.h"
#include "mss.h"
#include "ssl_verify_backend.h"
#include "win32.h"
#include "test_common.h"
Go to the source code of this file.
Functions | |
const char * | strerror_win32 (DWORD errnum, struct gc_arena *gc) |
void | throw_signal (const int signum) |
Throw a hard signal. More... | |
static const char * | get_tmp_dir () |
static void | crypto_pem_encode_certificate (void **state) |
int | main (void) |
Variables | |
struct signal_info | siginfo_static |
const char * | unittest_cert |
|
static |
Definition at line 94 of file test_ssl.c.
References backend_x509_write_pem(), BSTR, buffer_read_from_file(), tls_root_ctx::ctx, gc_free(), gc_new(), get_tmp_dir(), platform_create_temp_file(), tls_ctx_client_new(), tls_ctx_free(), tls_ctx_load_cert_file(), and unittest_cert.
Referenced by main().
|
static |
Definition at line 81 of file test_ssl.c.
References win_get_tempdir().
Referenced by crypto_pem_encode_certificate().
int main | ( | void | ) |
Definition at line 124 of file test_ssl.c.
References crypto_pem_encode_certificate(), openvpn_unit_test_setup(), tls_free_lib(), and tls_init_lib().
const char* strerror_win32 | ( | DWORD | errnum, |
struct gc_arena * | gc | ||
) |
Definition at line 54 of file test_ssl.c.
References alloc_buf_gc(), ASSERT, BSTR, buf_printf(), SIZE, status, and utf16to8().
void throw_signal | ( | const int | signum | ) |
Throw a hard signal.
Called from management and when windows signals are received through ctrl-c, exit event etc.
Definition at line 60 of file test_ssl.c.
References ASSERT, block_async_signals(), D_SIGNAL_DEBUG, ignored_hard_signals_mask, msg, SIG_SOURCE_HARD, siginfo_static, signal_name(), signal_info::signal_received, try_throw_signal(), and unblock_async_signals().
struct signal_info siginfo_static |
Definition at line 51 of file test_ssl.c.
Referenced by get_signal().
const char* unittest_cert |
Definition at line 67 of file test_ssl.c.
Referenced by crypto_pem_encode_certificate().