Asterisk - The Open Source Telephony Project
18.5.0
|
Go to the source code of this file.
Functions | |
const char * | ast_stir_shaken_ca_file (const struct stir_shaken_general *cfg) |
Retrieve the 'ca_file' general configuration option value. More... | |
const char * | ast_stir_shaken_ca_path (const struct stir_shaken_general *cfg) |
Retrieve the 'ca_path' general configuration option value. More... | |
unsigned int | ast_stir_shaken_cache_max_size (const struct stir_shaken_general *cfg) |
Retrieve the 'cache_max_size' general configuration option value. More... | |
unsigned int | ast_stir_shaken_curl_timeout (const struct stir_shaken_general *cfg) |
Retrieve the 'curl_timeout' general configuration option value. More... | |
unsigned int | ast_stir_shaken_signature_timeout (const struct stir_shaken_general *cfg) |
Retrieve the 'signature_timeout' general configuration option value. More... | |
struct stir_shaken_general * | stir_shaken_general_get (void) |
Retrieve the stir/shaken 'general' configuration object. More... | |
int | stir_shaken_general_load (void) |
Load time initialization for the stir/shaken 'general' configuration. More... | |
int | stir_shaken_general_unload (void) |
Unload time cleanup for the stir/shaken 'general' configuration. More... | |
const char* ast_stir_shaken_ca_file | ( | const struct stir_shaken_general * | cfg | ) |
Retrieve the 'ca_file' general configuration option value.
cfg | A 'general' configuration object |
The | 'ca_file' value |
Definition at line 72 of file general.c.
References stir_shaken_general::ca_file, and DEFAULT_CA_FILE.
const char* ast_stir_shaken_ca_path | ( | const struct stir_shaken_general * | cfg | ) |
Retrieve the 'ca_path' general configuration option value.
cfg | A 'general' configuration object |
The | 'ca_path' value |
Definition at line 77 of file general.c.
References stir_shaken_general::ca_path, and DEFAULT_CA_PATH.
unsigned int ast_stir_shaken_cache_max_size | ( | const struct stir_shaken_general * | cfg | ) |
Retrieve the 'cache_max_size' general configuration option value.
cfg | A 'general' configuration object |
The | 'cache_max_size' value |
Definition at line 82 of file general.c.
References stir_shaken_general::cache_max_size, and DEFAULT_CACHE_MAX_SIZE.
unsigned int ast_stir_shaken_curl_timeout | ( | const struct stir_shaken_general * | cfg | ) |
Retrieve the 'curl_timeout' general configuration option value.
cfg | A 'general' configuration object |
The | 'curl_timeout' value |
Definition at line 87 of file general.c.
References stir_shaken_general::curl_timeout, and DEFAULT_CURL_TIMEOUT.
Referenced by get_curl_instance().
unsigned int ast_stir_shaken_signature_timeout | ( | const struct stir_shaken_general * | cfg | ) |
Retrieve the 'signature_timeout' general configuration option value.
cfg | A 'general' configuration object |
The | 'signature_timeout' value |
Definition at line 92 of file general.c.
References DEFAULT_SIGNATURE_TIMEOUT, and stir_shaken_general::signature_timeout.
Referenced by ast_stir_shaken_get_signature_timeout().
struct stir_shaken_general* stir_shaken_general_get | ( | void | ) |
Retrieve the stir/shaken 'general' configuration object.
A default configuration object is returned if no configuration was specified. As well, NULL can be returned if there is no configuration, and a problem occurred while loading the defaults.
A | 'general' configuration object, or NULL |
Definition at line 54 of file general.c.
References ao2_bump, ao2_cleanup, ao2_container_count(), ao2_find, ao2_ref, AST_RETRIEVE_FLAG_ALL, AST_RETRIEVE_FLAG_MULTIPLE, ast_sorcery_retrieve_by_fields(), ast_stir_shaken_sorcery(), CONFIG_TYPE, container, and NULL.
Referenced by ast_stir_shaken_get_signature_timeout(), get_curl_instance(), stir_shaken_general_loaded(), and stir_shaken_general_show().
int stir_shaken_general_load | ( | void | ) |
Load time initialization for the stir/shaken 'general' configuration.
0 | on success, -1 on error |
Definition at line 248 of file general.c.
References __stringify, ARRAY_LEN, ast_cli_register_multiple, ast_log, ast_sorcery_apply_default, ast_sorcery_instance_observer_add(), ast_sorcery_object_field_register, ast_sorcery_object_field_register_custom, ast_sorcery_object_register, ast_stir_shaken_sorcery(), ca_file_to_str(), ca_path_to_str(), stir_shaken_general::cache_max_size, CONFIG_TYPE, stir_shaken_general::curl_timeout, DEFAULT_CA_FILE, DEFAULT_CA_PATH, DEFAULT_CACHE_MAX_SIZE, DEFAULT_CURL_TIMEOUT, DEFAULT_SIGNATURE_TIMEOUT, FLDSET, LOG_ERROR, NULL, on_load_ca_file(), on_load_ca_path(), OPT_NOOP_T, OPT_UINT_T, stir_shaken_general::signature_timeout, sorcery, stir_shaken_general_alloc(), and stir_shaken_general_apply().
Referenced by load_module().
int stir_shaken_general_unload | ( | void | ) |
Unload time cleanup for the stir/shaken 'general' configuration.
0 | on success, -1 on error |
Definition at line 232 of file general.c.
References ao2_ref, ARRAY_LEN, ast_cli_unregister_multiple(), ast_sorcery_instance_observer_remove(), ast_stir_shaken_sorcery(), and NULL.
Referenced by unload_module().