Deleted Added
full compact
auth-rhosts.c (126274) auth-rhosts.c (149749)
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 * Rhosts authentication. This file contains code to check whether to admit
6 * the login based on rhosts authentication. This file also processes
7 * /etc/hosts.equiv.
8 *
9 * As far as I am concerned, the code I have written for this software
10 * can be used freely for any purpose. Any derived versions of this
11 * software must be clearly marked as such, and if the derived work is
12 * incompatible with the protocol description in the RFC file, it must be
13 * called by a name other than "ssh" or "Secure Shell".
14 */
15
16#include "includes.h"
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 * Rhosts authentication. This file contains code to check whether to admit
6 * the login based on rhosts authentication. This file also processes
7 * /etc/hosts.equiv.
8 *
9 * As far as I am concerned, the code I have written for this software
10 * can be used freely for any purpose. Any derived versions of this
11 * software must be clearly marked as such, and if the derived work is
12 * incompatible with the protocol description in the RFC file, it must be
13 * called by a name other than "ssh" or "Secure Shell".
14 */
15
16#include "includes.h"
17RCSID("$OpenBSD: auth-rhosts.c,v 1.32 2003/11/04 08:54:09 djm Exp $");
17RCSID("$OpenBSD: auth-rhosts.c,v 1.33 2005/07/17 07:17:54 djm Exp $");
18
19#include "packet.h"
20#include "uidswap.h"
21#include "pathnames.h"
22#include "log.h"
23#include "servconf.h"
24#include "canohost.h"
25#include "auth.h"

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

128 continue; /* Different username. */
129
130 /* Found the user and host. */
131 fclose(f);
132
133 /* If the entry was negated, deny access. */
134 if (negated) {
135 auth_debug_add("Matched negative entry in %.100s.",
18
19#include "packet.h"
20#include "uidswap.h"
21#include "pathnames.h"
22#include "log.h"
23#include "servconf.h"
24#include "canohost.h"
25#include "auth.h"

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

128 continue; /* Different username. */
129
130 /* Found the user and host. */
131 fclose(f);
132
133 /* If the entry was negated, deny access. */
134 if (negated) {
135 auth_debug_add("Matched negative entry in %.100s.",
136 filename);
136 filename);
137 return 0;
138 }
139 /* Accept authentication. */
140 return 1;
141 }
142
143 /* Authentication using this file denied. */
144 fclose(f);

--- 151 unchanged lines hidden ---
137 return 0;
138 }
139 /* Accept authentication. */
140 return 1;
141 }
142
143 /* Authentication using this file denied. */
144 fclose(f);

--- 151 unchanged lines hidden ---