auth1.c (126277) | auth1.c (128460) |
---|---|
1/* 2 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 3 * All rights reserved 4 * 5 * As far as I am concerned, the code I have written for this software 6 * can be used freely for any purpose. Any derived versions of this 7 * software must be clearly marked as such, and if the derived work is 8 * incompatible with the protocol description in the RFC file, it must be 9 * called by a name other than "ssh" or "Secure Shell". 10 */ 11 12#include "includes.h" 13RCSID("$OpenBSD: auth1.c,v 1.55 2003/11/08 16:02:40 jakob Exp $"); | 1/* 2 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 3 * All rights reserved 4 * 5 * As far as I am concerned, the code I have written for this software 6 * can be used freely for any purpose. Any derived versions of this 7 * software must be clearly marked as such, and if the derived work is 8 * incompatible with the protocol description in the RFC file, it must be 9 * called by a name other than "ssh" or "Secure Shell". 10 */ 11 12#include "includes.h" 13RCSID("$OpenBSD: auth1.c,v 1.55 2003/11/08 16:02:40 jakob Exp $"); |
14RCSID("$FreeBSD: head/crypto/openssh/auth1.c 126277 2004-02-26 10:52:33Z des $"); | 14RCSID("$FreeBSD: head/crypto/openssh/auth1.c 128460 2004-04-20 09:46:41Z des $"); |
15 16#include "xmalloc.h" 17#include "rsa.h" 18#include "ssh1.h" 19#include "packet.h" 20#include "buffer.h" 21#include "mpaux.h" 22#include "log.h" --- 280 unchanged lines hidden (view full) --- 303 authctxt->pw = fakepw(); 304 } 305 306 setproctitle("%s%s", authctxt->pw ? user : "unknown", 307 use_privsep ? " [net]" : ""); 308 309#ifdef USE_PAM 310 if (options.use_pam) | 15 16#include "xmalloc.h" 17#include "rsa.h" 18#include "ssh1.h" 19#include "packet.h" 20#include "buffer.h" 21#include "mpaux.h" 22#include "log.h" --- 280 unchanged lines hidden (view full) --- 303 authctxt->pw = fakepw(); 304 } 305 306 setproctitle("%s%s", authctxt->pw ? user : "unknown", 307 use_privsep ? " [net]" : ""); 308 309#ifdef USE_PAM 310 if (options.use_pam) |
311 PRIVSEP(start_pam(user)); | 311 PRIVSEP(start_pam(authctxt)); |
312#endif 313 314 /* 315 * If we are not running as root, the user must have the same uid as 316 * the server. (Unless you are running Windows) 317 */ 318#ifndef HAVE_CYGWIN 319 if (!use_privsep && getuid() != 0 && authctxt->pw && --- 15 unchanged lines hidden --- | 312#endif 313 314 /* 315 * If we are not running as root, the user must have the same uid as 316 * the server. (Unless you are running Windows) 317 */ 318#ifndef HAVE_CYGWIN 319 if (!use_privsep && getuid() != 0 && authctxt->pw && --- 15 unchanged lines hidden --- |