OpenVPN
|
#include "syshead.h"
#include <setjmp.h>
#include <cmocka.h>
#include "ssl.h"
#include "ssl_verify.h"
Go to the source code of this file.
Functions | |
int | parse_line (const char *line, char **p, const int n, const char *file, const int line_num, int msglevel, struct gc_arena *gc) |
int | pem_password_callback (char *buf, int size, int rwflag, void *u) |
Callback to retrieve the user's password. More... | |
void | cert_hash_remember (struct tls_session *session, const int cert_depth, const struct buffer *cert_hash) |
result_t | verify_cert (struct tls_session *session, openvpn_x509_cert_t *cert, int cert_depth) |
void cert_hash_remember | ( | struct tls_session * | session, |
const int | cert_depth, | ||
const struct buffer * | cert_hash | ||
) |
Definition at line 57 of file mock_ssl_dependencies.c.
References ALLOC_OBJ, ALLOC_OBJ_CLEAR, ASSERT, BLEN, BPTR, MAX_CERT_DEPTH, and cert_hash::sha256_hash.
int parse_line | ( | const char * | line, |
char ** | p, | ||
const int | n, | ||
const char * | file, | ||
const int | line_num, | ||
int | msglevel, | ||
struct gc_arena * | gc | ||
) |
Definition at line 41 of file mock_ssl_dependencies.c.
int pem_password_callback | ( | char * | buf, |
int | size, | ||
int | rwflag, | ||
void * | u | ||
) |
Callback to retrieve the user's password.
buf | Buffer to return the password in |
size | Size of the buffer |
rwflag | Unused, needed for OpenSSL compatibility |
u | Unused, needed for OpenSSL compatibility |
Definition at line 51 of file mock_ssl_dependencies.c.
References passbuf, user_pass::password, pem_password_setup(), purge_user_pass(), and strncpynt().
result_t verify_cert | ( | struct tls_session * | session, |
openvpn_x509_cert_t * | cert, | ||
int | cert_depth | ||
) |
Definition at line 64 of file mock_ssl_dependencies.c.
References alloc_buf_gc(), ASSERT, backend_x509_get_username(), BLEN, BPTR, BSTR, buf_printf(), buffer::capacity, cleanup(), tls_options::crl_file, D_HANDSHAKE, D_TLS_ERRORS, tls_options::es, tls_options::export_peer_cert_dir, FAILURE, format_hex_ex(), gc_free(), gc_new(), verify_hash_list::hash, M_WARN, MAX_CERT_DEPTH, max_int(), MD_SHA1, MD_SHA256, memcmp_constant_time(), msg, verify_hash_list::next, platform_create_temp_file(), tls_options::plugins, set_common_name(), setenv_untrusted(), tls_options::ssl_flags, SSLF_CRL_VERIFY_DIR, string_mod_remap_name(), string_replace_leading(), SUCCESS, tls_clear_error(), TLS_USERNAME_LEN, tls_verify_crl_missing(), verify_cert_call_command(), verify_cert_call_plugin(), verify_cert_cert_delete_env(), verify_cert_cert_export_env(), verify_cert_set_env(), verify_check_crl_dir(), tls_options::verify_command, tls_options::verify_hash, tls_options::verify_hash_algo, tls_options::verify_hash_depth, verify_peer_cert(), x509_get_sha1_fingerprint(), x509_get_sha256_fingerprint(), x509_get_subject(), tls_options::x509_track, and tls_options::x509_username_field.