|
Lines 64-69
extern Options options;
Link Here
|
| 64 |
extern char *__progname; |
64 |
extern char *__progname; |
| 65 |
extern uid_t original_real_uid; |
65 |
extern uid_t original_real_uid; |
| 66 |
extern uid_t original_effective_uid; |
66 |
extern uid_t original_effective_uid; |
|
|
67 |
extern int tty_flag; |
| 67 |
|
68 |
|
| 68 |
static int show_other_keys(struct hostkeys *, Key *); |
69 |
static int show_other_keys(struct hostkeys *, Key *); |
| 69 |
static void warn_changed_key(Key *); |
70 |
static void warn_changed_key(Key *); |
|
Lines 771-777
check_host_key(char *hostname, struct so
Link Here
|
| 771 |
logit("Warning: Permanently added the %s host " |
772 |
logit("Warning: Permanently added the %s host " |
| 772 |
"key for IP address '%.128s' to the list " |
773 |
"key for IP address '%.128s' to the list " |
| 773 |
"of known hosts.", type, ip); |
774 |
"of known hosts.", type, ip); |
| 774 |
} else if (options.visual_host_key) { |
775 |
} else if (options.visual_host_key == VISUAL_HOST_ALWAYS || |
|
|
776 |
((tty_flag || isatty(STDERR_FILENO)) && |
| 777 |
options.visual_host_key == VISUAL_HOST_YES)) { |
| 775 |
fp = key_fingerprint(host_key, SSH_FP_MD5, SSH_FP_HEX); |
778 |
fp = key_fingerprint(host_key, SSH_FP_MD5, SSH_FP_HEX); |
| 776 |
ra = key_fingerprint(host_key, SSH_FP_MD5, |
779 |
ra = key_fingerprint(host_key, SSH_FP_MD5, |
| 777 |
SSH_FP_RANDOMART); |
780 |
SSH_FP_RANDOMART); |