FreeSWITCH API Documentation
1.7.0
|
Go to the source code of this file.
Functions | |
static void | switch_ssl_ssl_lock_callback (int mode, int type, char *file, int line) |
static unsigned long | switch_ssl_ssl_thread_id (void) |
void | switch_ssl_init_ssl_locks (void) |
void | switch_ssl_destroy_ssl_locks (void) |
static const EVP_MD * | get_evp_by_name (const char *name) |
int | switch_core_cert_verify (dtls_fingerprint_t *fp) |
int | switch_core_cert_expand_fingerprint (dtls_fingerprint_t *fp, const char *str) |
int | switch_core_cert_extract_fingerprint (X509 *x509, dtls_fingerprint_t *fp) |
int | switch_core_cert_gen_fingerprint (const char *prefix, dtls_fingerprint_t *fp) |
static int | mkcert (X509 **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days) |
int | switch_core_gen_certs (const char *prefix) |
Variables | |
static switch_mutex_t ** | ssl_mutexes |
static switch_memory_pool_t * | ssl_pool = NULL |
static int | ssl_count = 0 |
|
static |
Definition at line 96 of file switch_core_cert.c.
Referenced by switch_core_cert_extract_fingerprint().
|
static |
Definition at line 336 of file switch_core_cert.c.
References switch_cache_db_handle::name, and switch_assert.
Referenced by switch_core_gen_certs().
int switch_core_cert_expand_fingerprint | ( | dtls_fingerprint_t * | fp, |
const char * | str | ||
) |
Definition at line 152 of file switch_core_cert.c.
References MAX_FPLEN.
Referenced by switch_rtp_add_dtls().
int switch_core_cert_extract_fingerprint | ( | X509 * | x509, |
dtls_fingerprint_t * | fp | ||
) |
Definition at line 168 of file switch_core_cert.c.
References get_evp_by_name(), SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, and switch_log_printf().
Referenced by dtls_state_setup(), and switch_core_cert_gen_fingerprint().
int switch_core_cert_gen_fingerprint | ( | const char * | prefix, |
dtls_fingerprint_t * | fp | ||
) |
Definition at line 189 of file switch_core_cert.c.
References switch_directories::certs_dir, SWITCH_CHANNEL_LOG, switch_core_cert_extract_fingerprint(), switch_file_exists(), SWITCH_GLOBAL_dirs, SWITCH_LOG_ERROR, switch_log_printf(), switch_mprintf(), SWITCH_PATH_SEPARATOR, and SWITCH_STATUS_SUCCESS.
Referenced by generate_local_fingerprint().
int switch_core_cert_verify | ( | dtls_fingerprint_t * | fp | ) |
Definition at line 133 of file switch_core_cert.c.
References MAX_FPLEN.
Referenced by dtls_state_setup().
int switch_core_gen_certs | ( | const char * | prefix | ) |
Definition at line 240 of file switch_core_cert.c.
References switch_directories::certs_dir, mkcert(), switch_file_exists(), SWITCH_GLOBAL_dirs, switch_is_file_path(), switch_mprintf(), SWITCH_PATH_SEPARATOR, switch_safe_free, SWITCH_STATUS_SUCCESS, and switch_stristr().
Referenced by switch_core_media_init().
void switch_ssl_destroy_ssl_locks | ( | void | ) |
Definition at line 79 of file switch_core_cert.c.
References ssl_count, ssl_mutexes, and switch_mutex_destroy().
Referenced by switch_core_destroy().
void switch_ssl_init_ssl_locks | ( | void | ) |
Definition at line 54 of file switch_core_cert.c.
References ssl_count, ssl_mutexes, ssl_pool, switch_assert, switch_core_new_memory_pool, switch_mutex_init(), SWITCH_MUTEX_NESTED, switch_ssl_ssl_lock_callback(), and switch_ssl_ssl_thread_id().
Referenced by switch_core_init().
|
inlinestatic |
Definition at line 39 of file switch_core_cert.c.
References ssl_mutexes, switch_mutex_lock(), and switch_mutex_unlock().
Referenced by switch_ssl_init_ssl_locks().
|
inlinestatic |
Definition at line 49 of file switch_core_cert.c.
References switch_thread_self().
Referenced by switch_ssl_init_ssl_locks().
|
static |
Definition at line 37 of file switch_core_cert.c.
Referenced by switch_ssl_destroy_ssl_locks(), and switch_ssl_init_ssl_locks().
|
static |
Definition at line 35 of file switch_core_cert.c.
Referenced by switch_ssl_destroy_ssl_locks(), switch_ssl_init_ssl_locks(), and switch_ssl_ssl_lock_callback().
|
static |
Definition at line 36 of file switch_core_cert.c.
Referenced by switch_ssl_init_ssl_locks().