|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
Go to the source code of this file.
Functions | |
| asciichat_error_t | parse_public_key (const char *input, public_key_t *key_out) |
| asciichat_error_t | parse_private_key (const char *key_path, private_key_t *key_out) |
| asciichat_error_t | parse_public_keys (const char *input, public_key_t *keys_out, size_t *num_keys, size_t max_keys) |
| asciichat_error_t | public_key_to_x25519 (const public_key_t *key, uint8_t x25519_pk[32]) |
| asciichat_error_t | private_key_to_x25519 (const private_key_t *key, uint8_t x25519_sk[32]) |
| asciichat_error_t | fetch_github_keys (const char *username, char ***keys_out, size_t *num_keys, bool use_gpg) |
| asciichat_error_t | fetch_gitlab_keys (const char *username, char ***keys_out, size_t *num_keys, bool use_gpg) |
| asciichat_error_t | parse_keys_from_file (const char *path, public_key_t *keys, size_t *num_keys, size_t max_keys) |
| void | format_public_key (const public_key_t *key, char *output, size_t output_size) |
| asciichat_error_t | hex_decode (const char *hex, uint8_t *output, size_t output_len) |
| asciichat_error_t fetch_github_keys | ( | const char * | username, |
| char *** | keys_out, | ||
| size_t * | num_keys, | ||
| bool | use_gpg | ||
| ) |
Definition at line 517 of file keys.c.
References fetch_github_gpg_keys(), and fetch_github_ssh_keys().
| asciichat_error_t fetch_gitlab_keys | ( | const char * | username, |
| char *** | keys_out, | ||
| size_t * | num_keys, | ||
| bool | use_gpg | ||
| ) |
Definition at line 529 of file keys.c.
References fetch_gitlab_gpg_keys(), and fetch_gitlab_ssh_keys().
| void format_public_key | ( | const public_key_t * | key, |
| char * | output, | ||
| size_t | output_size | ||
| ) |
Definition at line 589 of file keys.c.
References safe_snprintf().
| asciichat_error_t hex_decode | ( | const char * | hex, |
| uint8_t * | output, | ||
| size_t | output_len | ||
| ) |
Definition at line 627 of file keys.c.
Referenced by parse_public_key().
| asciichat_error_t parse_keys_from_file | ( | const char * | path, |
| public_key_t * | keys, | ||
| size_t * | num_keys, | ||
| size_t | max_keys | ||
| ) |
Definition at line 545 of file keys.c.
References parse_public_key(), path_looks_like_path(), path_validate_user_path(), and platform_fopen().
Referenced by parse_public_keys().
| asciichat_error_t parse_private_key | ( | const char * | key_path, |
| private_key_t * | key_out | ||
| ) |
Definition at line 194 of file keys.c.
References gpg_get_public_key(), openpgp_parse_armored_seckey(), parse_ssh_private_key(), path_validate_user_path(), platform_fopen(), and safe_snprintf().
Referenced by client_crypto_init().
| asciichat_error_t parse_public_key | ( | const char * | input, |
| public_key_t * | key_out | ||
| ) |
Definition at line 29 of file keys.c.
References hex_decode(), https_get(), parse_gpg_key(), parse_gpg_key_binary(), parse_public_key(), parse_public_keys(), parse_ssh_ed25519_line(), path_looks_like_path(), path_validate_user_path(), platform_fopen(), url_is_valid(), url_parse(), and url_parts_destroy().
Referenced by check_known_host(), discovery_keys_download_https(), discovery_keys_fetch_github(), discovery_keys_fetch_gitlab(), discovery_keys_load_file(), discovery_keys_verify(), parse_keys_from_file(), parse_public_key(), and parse_public_keys().
| asciichat_error_t parse_public_keys | ( | const char * | input, |
| public_key_t * | keys_out, | ||
| size_t * | num_keys, | ||
| size_t | max_keys | ||
| ) |
Definition at line 345 of file keys.c.
References fetch_github_gpg_keys(), fetch_github_ssh_keys(), fetch_gitlab_gpg_keys(), fetch_gitlab_ssh_keys(), parse_keys_from_file(), parse_public_key(), parse_public_keys(), and path_looks_like_path().
Referenced by client_crypto_handshake(), crypto_handshake_client_key_exchange(), parse_public_key(), and parse_public_keys().
| asciichat_error_t private_key_to_x25519 | ( | const private_key_t * | key, |
| uint8_t | x25519_sk[32] | ||
| ) |
Definition at line 494 of file keys.c.
References ed25519_to_x25519_private().
| asciichat_error_t public_key_to_x25519 | ( | const public_key_t * | key, |
| uint8_t | x25519_pk[32] | ||
| ) |
Definition at line 475 of file keys.c.
References ed25519_to_x25519_public().