summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-01-19 04:26:52 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-01-19 04:26:52 +0000
commitdb65e8fdedadaf79df2d8393a4d43e9094c80649 (patch)
treee5902db5ee2b69f9f3c2fa0dbdeb7f4fc20c68b4 /session.c
parent5aa80596f76ce36dee4623a00a55548834c3328d (diff)
Please grep through the source and look for 'ISSUE' comments and verify
that I was able to get all the portable bits in the right location. As for the SKEY comment there is an email out to Markus as to how it should be resolved. Until then I just #ifdef SKEY/#endif out the whole block. - (bal) OpenBSD Resync - markus@cvs.openbsd.org 2001/01/18 16:20:21 [log-client.c log-server.c log.c readconf.c servconf.c ssh.1 ssh.h sshd.8 sshd.c] log() is at pri=LOG_INFO, since LOG_NOTICE goes to /dev/console on many systems - markus@cvs.openbsd.org 2001/01/18 16:59:59 [auth-passwd.c auth.c auth.h auth1.c auth2.c serverloop.c session.c session.h sshconnect1.c] 1) removes fake skey from sshd, since this will be much harder with /usr/libexec/auth/login_XXX 2) share/unify code used in ssh-1 and ssh-2 authentication (server side) 3) make addition of BSD_AUTH and other challenge reponse methods easier. - markus@cvs.openbsd.org 2001/01/18 17:12:43 [auth-chall.c auth2-chall.c] rename *-skey.c *-chall.c since the files are not skey specific
Diffstat (limited to 'session.c')
-rw-r--r--session.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/session.c b/session.c
index e52aed5a2..2c1500431 100644
--- a/session.c
+++ b/session.c
@@ -33,7 +33,7 @@
33 */ 33 */
34 34
35#include "includes.h" 35#include "includes.h"
36RCSID("$OpenBSD: session.c,v 1.48 2001/01/13 18:43:31 markus Exp $"); 36RCSID("$OpenBSD: session.c,v 1.49 2001/01/18 17:00:00 markus Exp $");
37 37
38#include "xmalloc.h" 38#include "xmalloc.h"
39#include "ssh.h" 39#include "ssh.h"
@@ -2000,11 +2000,8 @@ session_proctitle(Session *s)
2000} 2000}
2001 2001
2002void 2002void
2003do_authenticated2(void) 2003do_authenticated2(Authctxt *authctxt)
2004{ 2004{
2005#ifdef HAVE_LOGIN_CAP
2006 struct passwd *pw;
2007#endif
2008 2005
2009 /* 2006 /*
2010 * Cancel the alarm we set to limit the time taken for 2007 * Cancel the alarm we set to limit the time taken for
@@ -2016,8 +2013,8 @@ do_authenticated2(void)
2016 startup_pipe = -1; 2013 startup_pipe = -1;
2017 } 2014 }
2018#if defined(HAVE_LOGIN_CAP) && defined(HAVE_PW_CLASS_IN_PASSWD) 2015#if defined(HAVE_LOGIN_CAP) && defined(HAVE_PW_CLASS_IN_PASSWD)
2019 pw = auth_get_user(); 2016 /* ISSUE: Is this correct? */
2020 if ((lc = login_getclass(pw->pw_class)) == NULL) { 2017 if ((lc = login_getclass(authctxt->pw->pw_class)) == NULL) {
2021 error("unable to get login class"); 2018 error("unable to get login class");
2022 return; 2019 return;
2023 } 2020 }