Asterisk - The Open Source Telephony Project
18.5.0
|
#include <openssl/evp.h>
Go to the source code of this file.
Functions | |
int | stir_shaken_cli_show (void *obj, void *arg, int flags) |
Output configuration settings to the Asterisk CLI. More... | |
char * | stir_shaken_get_serial_number_x509 (const char *path) |
Gets the serial number in hex form from the X509 certificate at path. More... | |
EVP_PKEY * | stir_shaken_read_key (const char *path, int priv) |
Reads the public (or private) key from the specified path. More... | |
char * | stir_shaken_tab_complete_name (const char *word, struct ao2_container *container) |
Tab completion for name matching with STIR/SHAKEN CLI commands. More... | |
int stir_shaken_cli_show | ( | void * | obj, |
void * | arg, | ||
int | flags | ||
) |
Output configuration settings to the Asterisk CLI.
obj | A sorcery object containing configuration data |
arg | Asterisk CLI argument object |
flags | ao2 container flags |
0 |
Definition at line 35 of file stir_shaken.c.
References a, ast_cli(), AST_HANDLER_ONLY_STRING, ast_sorcery_object_get_id(), ast_sorcery_object_get_type(), ast_sorcery_objectset_create2(), ast_stir_shaken_sorcery(), ast_variable_list_sort(), ast_variables_destroy(), ast_cli_args::fd, ast_variable::name, ast_variable::next, options, and ast_variable::value.
Referenced by stir_shaken_certificate_show(), stir_shaken_certificate_show_all(), stir_shaken_general_show(), and stir_shaken_store_show().
char* stir_shaken_get_serial_number_x509 | ( | const char * | path | ) |
Gets the serial number in hex form from the X509 certificate at path.
path | The full path of the X509 certificate |
NULL | on failure |
serial | number on success |
Definition at line 140 of file stir_shaken.c.
References ast_log, ast_strdup, LOG_ERROR, and NULL.
Referenced by curl_public_key().
EVP_PKEY* stir_shaken_read_key | ( | const char * | path, |
int | priv | ||
) |
Reads the public (or private) key from the specified path.
path | The path to the file containing the private key |
priv | Specify 0 for public, 1 for private |
NULL | on failure |
The | public/private key on success |
Definition at line 89 of file stir_shaken.c.
References ast_log, LOG_ERROR, and NULL.
Referenced by ast_stir_shaken_verify(), stir_shaken_certificate_apply(), and test_stir_shaken_create_cert().
char* stir_shaken_tab_complete_name | ( | const char * | word, |
struct ao2_container * | container | ||
) |
Tab completion for name matching with STIR/SHAKEN CLI commands.
word | The word to tab complete on |
container | The sorcery container to iterate through |
The | tab completion options |
Definition at line 66 of file stir_shaken.c.
References ao2_iterator_destroy(), ao2_iterator_init(), ao2_iterator_next, ao2_ref, ast_cli_completion_add(), ast_sorcery_object_get_id(), ast_strdup, and NULL.
Referenced by stir_shaken_certificate_show(), and stir_shaken_store_show().