summaryrefslogtreecommitdiff
path: root/auth2-chall.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-03-22 02:30:41 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-03-22 02:30:41 +0000
commit7a2073c50b92c053594d48a651ebafae052a71ed (patch)
tree7cfceb925262a07a356b0667e19f33eec497b602 /auth2-chall.c
parent0f345f5ee1e71e1e9f8780ec13b2da23b6a9f7f8 (diff)
- provos@cvs.openbsd.org 2002/03/18 17:50:31
[auth-bsdauth.c auth-options.c auth-rh-rsa.c auth-rsa.c auth-skey.c auth.h auth1.c auth2-chall.c auth2.c kex.c kex.h kexdh.c kexgex.c servconf.c session.h servconf.h serverloop.c session.c sshd.c] integrate privilege separated openssh; its turned off by default for now. work done by me and markus@ applied, but outside of ensure that smaller code bits migrated with their owners.. no work was tried to 'fix' it to work. =) Later project!
Diffstat (limited to 'auth2-chall.c')
-rw-r--r--auth2-chall.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/auth2-chall.c b/auth2-chall.c
index 9f1d93275..38f955a02 100644
--- a/auth2-chall.c
+++ b/auth2-chall.c
@@ -23,7 +23,7 @@
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: auth2-chall.c,v 1.16 2002/01/13 17:57:37 markus Exp $"); 26RCSID("$OpenBSD: auth2-chall.c,v 1.17 2002/03/18 17:50:31 provos Exp $");
27 27
28#include "ssh2.h" 28#include "ssh2.h"
29#include "auth.h" 29#include "auth.h"
@@ -310,3 +310,22 @@ input_userauth_info_response(int type, u_int32_t seq, void *ctxt)
310 userauth_finish(authctxt, authenticated, method); 310 userauth_finish(authctxt, authenticated, method);
311 xfree(method); 311 xfree(method);
312} 312}
313
314void
315privsep_challenge_enable(void)
316{
317#ifdef BSD_AUTH
318 extern KbdintDevice mm_bsdauth_device;
319#endif
320#ifdef SKEY
321 extern KbdintDevice mm_skey_device;
322#endif
323 /* As long as SSHv1 has devices[0] hard coded this is fine */
324#ifdef BSD_AUTH
325 devices[0] = &mm_bsdauth_device;
326#else
327#ifdef SKEY
328 devices[0] = &mm_skey_device;
329#endif
330#endif
331}