version 1.147.2.1, 2004/02/28 03:51:34 |
version 1.147.2.2, 2004/08/19 22:37:32 |
|
|
#include "readconf.h" |
#include "readconf.h" |
#include "atomicio.h" |
#include "atomicio.h" |
#include "misc.h" |
#include "misc.h" |
#include "readpass.h" |
|
|
|
#include "dns.h" |
#include "dns.h" |
|
|
|
|
break; |
break; |
case HOST_CHANGED: |
case HOST_CHANGED: |
if (options.check_host_ip && host_ip_differ) { |
if (options.check_host_ip && host_ip_differ) { |
char *msg; |
char *key_msg; |
if (ip_status == HOST_NEW) |
if (ip_status == HOST_NEW) |
msg = "is unknown"; |
key_msg = "is unknown"; |
else if (ip_status == HOST_OK) |
else if (ip_status == HOST_OK) |
msg = "is unchanged"; |
key_msg = "is unchanged"; |
else |
else |
msg = "has a different value"; |
key_msg = "has a different value"; |
error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"); |
error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"); |
error("@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @"); |
error("@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @"); |
error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"); |
error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"); |
error("The %s host key for %s has changed,", type, host); |
error("The %s host key for %s has changed,", type, host); |
error("and the key for the according IP address %s", ip); |
error("and the key for the according IP address %s", ip); |
error("%s. This could either mean that", msg); |
error("%s. This could either mean that", key_msg); |
error("DNS SPOOFING is happening or the IP address for the host"); |
error("DNS SPOOFING is happening or the IP address for the host"); |
error("and its host key have changed at the same time."); |
error("and its host key have changed at the same time."); |
if (ip_status != HOST_NEW) |
if (ip_status != HOST_NEW) |