Asterisk - The Open Source Telephony Project
18.5.0
|
Common OpenSSL support code. More...
#include "asterisk.h"
#include "asterisk/_private.h"
#include <openssl/opensslv.h>
#include <dlfcn.h>
#include <openssl/crypto.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
#include <pthread.h>
#include "asterisk/lock.h"
#include "asterisk/logger.h"
#include "asterisk/utils.h"
Go to the source code of this file.
Macros | |
#define | get_OpenSSL_function(func) do { real_##func = dlsym(RTLD_NEXT, __stringify(func)); } while(0) |
Functions | |
int | ast_ssl_init (void) |
void | CRYPTO_set_id_callback (unsigned long(*func)(void)) |
void | CRYPTO_set_locking_callback (void(*func)(int mode, int type, const char *file, int line)) |
void | ERR_free_strings (void) |
int | SSL_library_init (void) |
void | SSL_load_error_strings (void) |
static void | ssl_lock (int mode, int n, const char *file, int line) |
static unsigned long | ssl_threadid (void) |
Variables | |
static ast_mutex_t * | ssl_locks |
static int | ssl_num_locks |
static int | startup_complete |
Common OpenSSL support code.
Definition in file libasteriskssl.c.
#define get_OpenSSL_function | ( | func | ) | do { real_##func = dlsym(RTLD_NEXT, __stringify(func)); } while(0) |
Definition at line 49 of file libasteriskssl.c.
Referenced by ast_ssl_init().
int ast_ssl_init | ( | void | ) |
Provided by ssl.c
Definition at line 130 of file libasteriskssl.c.
References ast_calloc, ast_debug, ast_mutex_init, CRYPTO_set_id_callback(), CRYPTO_set_locking_callback(), get_OpenSSL_function, NULL, SSL_library_init(), SSL_load_error_strings(), ssl_lock(), ssl_num_locks, ssl_threadid(), and startup_complete.
Referenced by asterisk_daemon().
void CRYPTO_set_id_callback | ( | unsigned long(*)(void) | func | ) |
Definition at line 100 of file libasteriskssl.c.
References ast_debug, and startup_complete.
Referenced by ast_ssl_init().
void CRYPTO_set_locking_callback | ( | void(*)(int mode, int type, const char *file, int line) | func | ) |
Definition at line 110 of file libasteriskssl.c.
References ast_debug, and startup_complete.
Referenced by ast_ssl_init().
void ERR_free_strings | ( | void | ) |
Definition at line 119 of file libasteriskssl.c.
int SSL_library_init | ( | void | ) |
Definition at line 80 of file libasteriskssl.c.
References ast_debug, and startup_complete.
Referenced by ast_ssl_init().
void SSL_load_error_strings | ( | void | ) |
Definition at line 90 of file libasteriskssl.c.
References ast_debug, and startup_complete.
Referenced by ast_ssl_init().
|
static |
Definition at line 64 of file libasteriskssl.c.
References ast_log, ast_mutex_lock, ast_mutex_unlock, LOG_ERROR, and ssl_num_locks.
Referenced by ast_ssl_init().
|
static |
Definition at line 58 of file libasteriskssl.c.
Referenced by ast_ssl_init().
|
static |
Definition at line 53 of file libasteriskssl.c.
|
static |
Definition at line 55 of file libasteriskssl.c.
Referenced by ast_ssl_init(), and ssl_lock().
|
static |
Definition at line 51 of file libasteriskssl.c.
Referenced by ast_ssl_init(), CRYPTO_set_id_callback(), CRYPTO_set_locking_callback(), SSL_library_init(), and SSL_load_error_strings().