=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/auth2-chall.c,v retrieving revision 1.8.2.1 retrieving revision 1.8.2.2 diff -u -r1.8.2.1 -r1.8.2.2 --- src/usr.bin/ssh/auth2-chall.c 2002/03/07 17:37:46 1.8.2.1 +++ src/usr.bin/ssh/auth2-chall.c 2002/05/17 00:03:23 1.8.2.2 @@ -23,7 +23,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "includes.h" -RCSID("$OpenBSD: auth2-chall.c,v 1.8.2.1 2002/03/07 17:37:46 jason Exp $"); +RCSID("$OpenBSD: auth2-chall.c,v 1.8.2.2 2002/05/17 00:03:23 miod Exp $"); #include "ssh2.h" #include "auth.h" @@ -309,4 +309,23 @@ } userauth_finish(authctxt, authenticated, method); xfree(method); +} + +void +privsep_challenge_enable(void) +{ +#ifdef BSD_AUTH + extern KbdintDevice mm_bsdauth_device; +#endif +#ifdef SKEY + extern KbdintDevice mm_skey_device; +#endif + /* As long as SSHv1 has devices[0] hard coded this is fine */ +#ifdef BSD_AUTH + devices[0] = &mm_bsdauth_device; +#else +#ifdef SKEY + devices[0] = &mm_skey_device; +#endif +#endif }