=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/auth2-chall.c,v retrieving revision 1.4.2.3 retrieving revision 1.4.2.4 diff -u -r1.4.2.3 -r1.4.2.4 --- src/usr.bin/ssh/auth2-chall.c 2002/03/09 00:20:43 1.4.2.3 +++ src/usr.bin/ssh/auth2-chall.c 2002/06/02 22:56:09 1.4.2.4 @@ -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.4.2.3 2002/03/09 00:20:43 miod Exp $"); +RCSID("$OpenBSD: auth2-chall.c,v 1.4.2.4 2002/06/02 22:56:09 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 }