* Returns 1 if `string` contains a literal ssh key, 0 otherwise * `key` will be set to the start of the actual key if a prefix is present. */
| 815 | * `key` will be set to the start of the actual key if a prefix is present. |
| 816 | */ |
| 817 | static int is_literal_ssh_key(const char *string, const char **key) |
| 818 | { |
| 819 | if (skip_prefix(string, "key::", key)) |
| 820 | return 1; |
| 821 | if (starts_with(string, "ssh-")) { |
| 822 | *key = string; |
| 823 | return 1; |
| 824 | } |
| 825 | return 0; |
| 826 | } |
| 827 | |
| 828 | static char *get_ssh_key_fingerprint(const char *signing_key) |
| 829 | { |
no test coverage detected