|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
Discovery Server Public Key Trust Management Implementation. More...
Go to the source code of this file.
Functions | |
| asciichat_error_t | discovery_keys_download_https (const char *url, uint8_t pubkey_out[32]) |
| asciichat_error_t | discovery_keys_load_file (const char *file_path, uint8_t pubkey_out[32]) |
| asciichat_error_t | discovery_keys_fetch_github (const char *username, bool is_gpg, uint8_t pubkey_out[32]) |
| asciichat_error_t | discovery_keys_fetch_gitlab (const char *username, uint8_t pubkey_out[32]) |
| asciichat_error_t | discovery_keys_get_cache_path (const char *acds_server, char *path_out, size_t path_size) |
| asciichat_error_t | discovery_keys_load_cached (const char *acds_server, uint8_t pubkey_out[32]) |
| asciichat_error_t | discovery_keys_save_cached (const char *acds_server, const uint8_t pubkey[32]) |
| asciichat_error_t | discovery_keys_clear_cache (const char *acds_server) |
| asciichat_error_t | discovery_keys_verify_change (const char *acds_server, const uint8_t old_pubkey[32], const uint8_t new_pubkey[32]) |
| asciichat_error_t | discovery_keys_verify (const char *acds_server, const char *key_spec, uint8_t pubkey_out[32]) |
Discovery Server Public Key Trust Management Implementation.
Definition in file discovery_keys.c.
| asciichat_error_t discovery_keys_clear_cache | ( | const char * | acds_server | ) |
Definition at line 237 of file discovery_keys.c.
References discovery_keys_get_cache_path(), platform_is_regular_file(), and PLATFORM_MAX_PATH_LENGTH.
| asciichat_error_t discovery_keys_download_https | ( | const char * | url, |
| uint8_t | pubkey_out[32] | ||
| ) |
Definition at line 59 of file discovery_keys.c.
References parse_public_key().
| asciichat_error_t discovery_keys_fetch_github | ( | const char * | username, |
| bool | is_gpg, | ||
| uint8_t | pubkey_out[32] | ||
| ) |
Definition at line 101 of file discovery_keys.c.
References parse_public_key(), and safe_snprintf().
| asciichat_error_t discovery_keys_fetch_gitlab | ( | const char * | username, |
| uint8_t | pubkey_out[32] | ||
| ) |
Definition at line 126 of file discovery_keys.c.
References parse_public_key(), and safe_snprintf().
| asciichat_error_t discovery_keys_get_cache_path | ( | const char * | acds_server, |
| char * | path_out, | ||
| size_t | path_size | ||
| ) |
Definition at line 151 of file discovery_keys.c.
References get_config_dir(), and safe_snprintf().
Referenced by discovery_keys_clear_cache(), discovery_keys_load_cached(), and discovery_keys_save_cached().
| asciichat_error_t discovery_keys_load_cached | ( | const char * | acds_server, |
| uint8_t | pubkey_out[32] | ||
| ) |
Definition at line 169 of file discovery_keys.c.
References discovery_keys_get_cache_path(), discovery_keys_load_file(), platform_is_regular_file(), and PLATFORM_MAX_PATH_LENGTH.
Referenced by discovery_keys_verify().
| asciichat_error_t discovery_keys_load_file | ( | const char * | file_path, |
| uint8_t | pubkey_out[32] | ||
| ) |
Definition at line 78 of file discovery_keys.c.
References file_path, and parse_public_key().
Referenced by discovery_keys_load_cached().
| asciichat_error_t discovery_keys_save_cached | ( | const char * | acds_server, |
| const uint8_t | pubkey[32] | ||
| ) |
Definition at line 189 of file discovery_keys.c.
References discovery_keys_get_cache_path(), platform_fopen(), PLATFORM_MAX_PATH_LENGTH, and safe_snprintf().
Referenced by discovery_keys_verify().
| asciichat_error_t discovery_keys_verify | ( | const char * | acds_server, |
| const char * | key_spec, | ||
| uint8_t | pubkey_out[32] | ||
| ) |
Definition at line 304 of file discovery_keys.c.
References discovery_keys_load_cached(), discovery_keys_save_cached(), discovery_keys_verify_change(), and parse_public_key().
Referenced by client_crypto_init().
| asciichat_error_t discovery_keys_verify_change | ( | const char * | acds_server, |
| const uint8_t | old_pubkey[32], | ||
| const uint8_t | new_pubkey[32] | ||
| ) |
Definition at line 262 of file discovery_keys.c.
References compute_key_fingerprint(), and platform_prompt_yes_no().
Referenced by discovery_keys_verify().