Asterisk - The Open Source Telephony Project
18.5.0
|
#include <openssl/evp.h>
Go to the source code of this file.
Functions | |
const char * | stir_shaken_certificate_get_attestation (struct stir_shaken_certificate *cert) |
Get the attestation level associated with a certificate. More... | |
struct stir_shaken_certificate * | stir_shaken_certificate_get_by_caller_id_number (const char *caller_id_number) |
Get a STIR/SHAKEN certificate by caller ID number. More... | |
EVP_PKEY * | stir_shaken_certificate_get_private_key (struct stir_shaken_certificate *cert) |
Get the private key associated with a certificate. More... | |
const char * | stir_shaken_certificate_get_public_cert_url (struct stir_shaken_certificate *cert) |
Get the public key URL associated with a certificate. More... | |
int | stir_shaken_certificate_load (void) |
Load time initialization for the stir/shaken 'certificate' configuration. More... | |
int | stir_shaken_certificate_unload (void) |
Unload time cleanup for the stir/shaken 'certificate' configuration. More... | |
const char* stir_shaken_certificate_get_attestation | ( | struct stir_shaken_certificate * | cert | ) |
Get the attestation level associated with a certificate.
cert | The certificate |
NULL | on failure |
The | attestation on success |
Definition at line 101 of file certificate.c.
References stir_shaken_certificate::attestation, and NULL.
Referenced by ast_stir_shaken_sign().
struct stir_shaken_certificate* stir_shaken_certificate_get_by_caller_id_number | ( | const char * | caller_id_number | ) |
Get a STIR/SHAKEN certificate by caller ID number.
callier_id_number | The caller ID number |
NULL | if not found |
The | certificate on success |
Definition at line 84 of file certificate.c.
References AST_RETRIEVE_FLAG_DEFAULT, ast_sorcery_retrieve_by_fields(), ast_stir_shaken_sorcery(), stir_shaken_certificate::caller_id_number, ast_variable::name, and NULL.
Referenced by ast_stir_shaken_sign(), and test_stir_shaken_cleanup_cert().
EVP_PKEY* stir_shaken_certificate_get_private_key | ( | struct stir_shaken_certificate * | cert | ) |
Get the private key associated with a certificate.
cert | The certificate to get the private key from |
NULL | on failure |
The | private key on success |
Definition at line 106 of file certificate.c.
References NULL, and stir_shaken_certificate::private_key.
Referenced by ast_stir_shaken_sign().
const char* stir_shaken_certificate_get_public_cert_url | ( | struct stir_shaken_certificate * | cert | ) |
Get the public key URL associated with a certificate.
cert | The certificate to get the public key URL from |
NULL | on failure |
The | public key URL on success |
Definition at line 96 of file certificate.c.
References NULL, and stir_shaken_certificate::public_cert_url.
Referenced by ast_stir_shaken_sign().
int stir_shaken_certificate_load | ( | void | ) |
Load time initialization for the stir/shaken 'certificate' configuration.
0 | on success, -1 on error |
Definition at line 355 of file certificate.c.
References ARRAY_LEN, ast_cli_register_multiple, ast_log, ast_sorcery_apply_default, ast_sorcery_object_field_register, ast_sorcery_object_field_register_custom, ast_sorcery_object_register, ast_stir_shaken_sorcery(), attestation_to_str(), stir_shaken_certificate::caller_id_number, CONFIG_TYPE, LOG_ERROR, NULL, on_load_attestation(), on_load_path(), on_load_public_cert_url(), OPT_NOOP_T, OPT_STRINGFIELD_T, path_to_str(), public_cert_url_to_str(), sorcery, stir_shaken_certificate_alloc(), stir_shaken_certificate_apply(), and STRFLDSET.
Referenced by load_module().
int stir_shaken_certificate_unload | ( | void | ) |
Unload time cleanup for the stir/shaken 'certificate' configuration.
0 | on success, -1 on error |
Definition at line 347 of file certificate.c.
References ARRAY_LEN, and ast_cli_unregister_multiple().
Referenced by unload_module().