diff options
author | des <des@FreeBSD.org> | 2002-06-29 10:56:23 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-06-29 10:56:23 +0000 |
commit | 3003a57dbbcf38476f27752cd854e24da3938070 (patch) | |
tree | b6e850e8a07779a10faff0a7e47ff3284e2265ab /crypto/openssh/auth2-chall.c | |
parent | 3f22fbc9c3472ff09e47296fdc105cae123caea9 (diff) | |
download | FreeBSD-src-3003a57dbbcf38476f27752cd854e24da3938070.zip FreeBSD-src-3003a57dbbcf38476f27752cd854e24da3938070.tar.gz |
PAM support, the FreeBSD way.
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'crypto/openssh/auth2-chall.c')
-rw-r--r-- | crypto/openssh/auth2-chall.c | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/crypto/openssh/auth2-chall.c b/crypto/openssh/auth2-chall.c index f35bfb2..4d6fcc3 100644 --- a/crypto/openssh/auth2-chall.c +++ b/crypto/openssh/auth2-chall.c @@ -24,6 +24,7 @@ */ #include "includes.h" RCSID("$OpenBSD: auth2-chall.c,v 1.18 2002/06/19 00:27:55 deraadt Exp $"); +RCSID("$FreeBSD$"); #include "ssh2.h" #include "auth.h" @@ -41,6 +42,9 @@ static void input_userauth_info_response(int, u_int32_t, void *); #ifdef BSD_AUTH extern KbdintDevice bsdauth_device; #else +#ifdef USE_PAM +extern KbdintDevice pam_device; +#endif #ifdef SKEY extern KbdintDevice skey_device; #endif @@ -50,6 +54,9 @@ KbdintDevice *devices[] = { #ifdef BSD_AUTH &bsdauth_device, #else +#ifdef USE_PAM + &pam_device, +#endif #ifdef SKEY &skey_device, #endif @@ -317,15 +324,22 @@ privsep_challenge_enable(void) #ifdef BSD_AUTH extern KbdintDevice mm_bsdauth_device; #endif +#ifdef USE_PAM + extern KbdintDevice mm_pam_device; +#endif #ifdef SKEY extern KbdintDevice mm_skey_device; #endif - /* As long as SSHv1 has devices[0] hard coded this is fine */ + int n = 0; + #ifdef BSD_AUTH - devices[0] = &mm_bsdauth_device; + devices[n++] = &mm_bsdauth_device; #else +#ifdef USE_PAM + devices[n++] = &mm_pam_device; +#endif #ifdef SKEY - devices[0] = &mm_skey_device; + devices[n++] = &mm_skey_device; #endif #endif } |