comparison svr-auth.c @ 121:9337c9f9a607 private-rez

PAM improvements
author Matt Johnston <matt@ucc.asn.au>
date Tue, 14 Sep 2004 12:51:16 +0000
parents 3394a7cb30cd
children 364a75cfebab
comparison
equal deleted inserted replaced
119:3394a7cb30cd 121:9337c9f9a607
53 53
54 memset(&ses.authstate, 0, sizeof(ses.authstate)); 54 memset(&ses.authstate, 0, sizeof(ses.authstate));
55 #ifdef ENABLE_SVR_PUBKEY_AUTH 55 #ifdef ENABLE_SVR_PUBKEY_AUTH
56 ses.authstate.authtypes |= AUTH_TYPE_PUBKEY; 56 ses.authstate.authtypes |= AUTH_TYPE_PUBKEY;
57 #endif 57 #endif
58 #if defined(ENABLE_SVR_PUBKEY_AUTH) || defined(ENABLE_SVR_PAM_AUTH) 58 #if defined(ENABLE_SVR_PASSWORD_AUTH) || defined(ENABLE_SVR_PAM_AUTH)
59 if (!svr_opts.noauthpass) { 59 if (!svr_opts.noauthpass) {
60 ses.authstate.authtypes |= AUTH_TYPE_PASSWORD; 60 ses.authstate.authtypes |= AUTH_TYPE_PASSWORD;
61 } 61 }
62 #endif 62 #endif
63 63