|
Asterisk - The Open Source Telephony Project
18.5.0
|

Go to the source code of this file.
Functions | |
| struct curl_cb_data * | curl_cb_data_create (void) |
| Allocate memory for a curl_cb_data struct. More... | |
| void | curl_cb_data_free (struct curl_cb_data *data) |
| Free a curl_cb_data struct. More... | |
| char * | curl_cb_data_get_cache_control (const struct curl_cb_data *data) |
| Get the cache_control field from a curl_cb_data struct. More... | |
| char * | curl_cb_data_get_expires (const struct curl_cb_data *data) |
| Get the expires field from a curl_cb_data struct. More... | |
| char * | curl_public_key (const char *public_cert_url, const char *path, struct curl_cb_data *data) |
| CURL the public key from the provided URL to the specified path. More... | |
| struct curl_cb_data* curl_cb_data_create | ( | void | ) |
Allocate memory for a curl_cb_data struct.
| NULL | on failure |
| curl_cb_struct | on success |
Definition at line 42 of file curl.c.
References ast_calloc.
Referenced by run_curl().
| void curl_cb_data_free | ( | struct curl_cb_data * | data | ) |
Free a curl_cb_data struct.
| data | The curl_cb_data struct to free |
Definition at line 51 of file curl.c.
References ast_free, curl_cb_data::cache_control, and curl_cb_data::expires.
Referenced by run_curl().
| char* curl_cb_data_get_cache_control | ( | const struct curl_cb_data * | data | ) |
Get the cache_control field from a curl_cb_data struct.
| data | The curl_cb_data |
| cache_control | on success |
| NULL | otherwise |
Definition at line 63 of file curl.c.
References curl_cb_data::cache_control, and NULL.
Referenced by set_public_key_expiration().
| char* curl_cb_data_get_expires | ( | const struct curl_cb_data * | data | ) |
Get the expires field from a curl_cb_data struct.
| data | The curl_cb_data |
| expires | on success |
| NULL | otherwise |
Definition at line 72 of file curl.c.
References curl_cb_data::expires, and NULL.
Referenced by set_public_key_expiration().
| char* curl_public_key | ( | const char * | public_cert_url, |
| const char * | path, | ||
| struct curl_cb_data * | data | ||
| ) |
CURL the public key from the provided URL to the specified path.
| public_cert_url | The public cert URL |
| path | The path to download the file to |
| data | The curl_cb_data |
| NULL | on failure |
| full | path filename on success |
Definition at line 185 of file curl.c.
References ast_asprintf, ast_free, ast_log, create_temp_file(), errno, get_curl_instance(), LOG_ERROR, NULL, RAII_VAR, and stir_shaken_get_serial_number_x509().
Referenced by run_curl().
1.8.13