Deleted Added
full compact
sshconnect.c (57430) sshconnect.c (57432)
1/*
2 * Author: Tatu Ylonen <ylo@cs.hut.fi>
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved
5 * Created: Sat Mar 18 22:15:47 1995 ylo
6 * Code to connect to a remote host, and to perform the client side of the
7 * login (authentication) dialog.
1/*
2 * Author: Tatu Ylonen <ylo@cs.hut.fi>
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved
5 * Created: Sat Mar 18 22:15:47 1995 ylo
6 * Code to connect to a remote host, and to perform the client side of the
7 * login (authentication) dialog.
8 *
9 * $FreeBSD: head/crypto/openssh/sshconnect.c 57432 2000-02-24 15:29:42Z markm $
8 */
9
10#include "includes.h"
11RCSID("$OpenBSD: sshconnect.c,v 1.56 2000/02/18 08:50:33 markus Exp $");
12
13#include <ssl/bn.h>
14#include "xmalloc.h"
15#include "rsa.h"

--- 1064 unchanged lines hidden (view full) ---

1080 * them, and the user will get bogus HOST_CHANGED warnings. This
1081 * essentially disables host authentication for localhost; however,
1082 * this is probably not a real problem.
1083 */
1084 switch (hostaddr->sa_family) {
1085 case AF_INET:
1086 local = (ntohl(((struct sockaddr_in *)hostaddr)->sin_addr.s_addr) >> 24) == IN_LOOPBACKNET;
1087 break;
10 */
11
12#include "includes.h"
13RCSID("$OpenBSD: sshconnect.c,v 1.56 2000/02/18 08:50:33 markus Exp $");
14
15#include <ssl/bn.h>
16#include "xmalloc.h"
17#include "rsa.h"

--- 1064 unchanged lines hidden (view full) ---

1082 * them, and the user will get bogus HOST_CHANGED warnings. This
1083 * essentially disables host authentication for localhost; however,
1084 * this is probably not a real problem.
1085 */
1086 switch (hostaddr->sa_family) {
1087 case AF_INET:
1088 local = (ntohl(((struct sockaddr_in *)hostaddr)->sin_addr.s_addr) >> 24) == IN_LOOPBACKNET;
1089 break;
1090#ifdef INET6
1088 case AF_INET6:
1089 local = IN6_IS_ADDR_LOOPBACK(&(((struct sockaddr_in6 *)hostaddr)->sin6_addr));
1090 break;
1091 case AF_INET6:
1092 local = IN6_IS_ADDR_LOOPBACK(&(((struct sockaddr_in6 *)hostaddr)->sin6_addr));
1093 break;
1094#endif
1091 default:
1092 local = 0;
1093 break;
1094 }
1095 if (local) {
1096 debug("Forcing accepting of host key for loopback/localhost.");
1097 return;
1098 }

--- 541 unchanged lines hidden ---
1095 default:
1096 local = 0;
1097 break;
1098 }
1099 if (local) {
1100 debug("Forcing accepting of host key for loopback/localhost.");
1101 return;
1102 }

--- 541 unchanged lines hidden ---