summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2005-01-04 13:07:27 +0000
committerColin Watson <cjwatson@debian.org>2005-01-04 13:07:27 +0000
commitfd0f611b70a83d80fe8793af785542ee5541b7cd (patch)
treebededd22bb7eeec52e20083237ab7e4113445a16 /sshconnect.c
parentc44fe9a5b9d3db96a7249b04d915f17e4a3a3b04 (diff)
parentebd2ce335af5861020c79fddb1ae35c03bf036cf (diff)
Merge 3.9p1 to the trunk.
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/sshconnect.c b/sshconnect.c
index e0d1a8c7e..5158416f0 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -13,7 +13,7 @@
13 */ 13 */
14 14
15#include "includes.h" 15#include "includes.h"
16RCSID("$OpenBSD: sshconnect.c,v 1.156 2004/01/25 03:49:09 djm Exp $"); 16RCSID("$OpenBSD: sshconnect.c,v 1.158 2004/06/21 17:36:31 avsm Exp $");
17 17
18#include <openssl/bn.h> 18#include <openssl/bn.h>
19 19
@@ -31,7 +31,6 @@ RCSID("$OpenBSD: sshconnect.c,v 1.156 2004/01/25 03:49:09 djm Exp $");
31#include "readconf.h" 31#include "readconf.h"
32#include "atomicio.h" 32#include "atomicio.h"
33#include "misc.h" 33#include "misc.h"
34#include "readpass.h"
35 34
36#include "dns.h" 35#include "dns.h"
37 36
@@ -800,19 +799,19 @@ check_host_key(char *host, struct sockaddr *hostaddr, Key *host_key,
800 break; 799 break;
801 case HOST_CHANGED: 800 case HOST_CHANGED:
802 if (options.check_host_ip && host_ip_differ) { 801 if (options.check_host_ip && host_ip_differ) {
803 char *msg; 802 char *key_msg;
804 if (ip_status == HOST_NEW) 803 if (ip_status == HOST_NEW)
805 msg = "is unknown"; 804 key_msg = "is unknown";
806 else if (ip_status == HOST_OK) 805 else if (ip_status == HOST_OK)
807 msg = "is unchanged"; 806 key_msg = "is unchanged";
808 else 807 else
809 msg = "has a different value"; 808 key_msg = "has a different value";
810 error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"); 809 error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
811 error("@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @"); 810 error("@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @");
812 error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"); 811 error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
813 error("The %s host key for %s has changed,", type, host); 812 error("The %s host key for %s has changed,", type, host);
814 error("and the key for the according IP address %s", ip); 813 error("and the key for the according IP address %s", ip);
815 error("%s. This could either mean that", msg); 814 error("%s. This could either mean that", key_msg);
816 error("DNS SPOOFING is happening or the IP address for the host"); 815 error("DNS SPOOFING is happening or the IP address for the host");
817 error("and its host key have changed at the same time."); 816 error("and its host key have changed at the same time.");
818 if (ip_status != HOST_NEW) 817 if (ip_status != HOST_NEW)