version 1.32, 1999/11/16 20:44:42 |
version 1.33, 1999/11/16 22:49:28 |
|
|
fatal("No host key is known for %.200s and you have requested strict checking.", host); |
fatal("No host key is known for %.200s and you have requested strict checking.", host); |
} else if (options.strict_host_key_checking == 2) { /* The default */ |
} else if (options.strict_host_key_checking == 2) { /* The default */ |
char prompt[1024]; |
char prompt[1024]; |
|
char *fp = fingerprint(host_key->e, host_key->n); |
snprintf(prompt, sizeof(prompt), |
snprintf(prompt, sizeof(prompt), |
"The authenticity of host '%.200s' can't be established.\n" |
"The authenticity of host '%.200s' can't be established.\n" |
"Are you sure you want to continue connecting (yes/no)? ", |
"Key fingerprint is %d %s.\n" |
host); |
"Are you sure you want to continue connecting (yes/no)? ", |
|
host, BN_num_bits(host_key->n), fp); |
if (!read_yes_or_no(prompt, -1)) |
if (!read_yes_or_no(prompt, -1)) |
fatal("Aborted by user!\n"); |
fatal("Aborted by user!\n"); |
} |
} |