summaryrefslogtreecommitdiff
path: root/auth2-chall.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2-chall.c')
-rw-r--r--auth2-chall.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/auth2-chall.c b/auth2-chall.c
index aacbf0bcc..0d1709307 100644
--- a/auth2-chall.c
+++ b/auth2-chall.c
@@ -41,9 +41,6 @@ static void input_userauth_info_response(int, u_int32_t, void *);
41#ifdef BSD_AUTH 41#ifdef BSD_AUTH
42extern KbdintDevice bsdauth_device; 42extern KbdintDevice bsdauth_device;
43#else 43#else
44#ifdef USE_PAM
45extern KbdintDevice sshpam_device;
46#endif
47#ifdef SKEY 44#ifdef SKEY
48extern KbdintDevice skey_device; 45extern KbdintDevice skey_device;
49#endif 46#endif
@@ -53,9 +50,6 @@ KbdintDevice *devices[] = {
53#ifdef BSD_AUTH 50#ifdef BSD_AUTH
54 &bsdauth_device, 51 &bsdauth_device,
55#else 52#else
56#ifdef USE_PAM
57 &sshpam_device,
58#endif
59#ifdef SKEY 53#ifdef SKEY
60 &skey_device, 54 &skey_device,
61#endif 55#endif
@@ -326,27 +320,18 @@ input_userauth_info_response(int type, u_int32_t seq, void *ctxt)
326void 320void
327privsep_challenge_enable(void) 321privsep_challenge_enable(void)
328{ 322{
329#if defined(BSD_AUTH) || defined(USE_PAM) || defined(SKEY)
330 int n = 0;
331#endif
332#ifdef BSD_AUTH 323#ifdef BSD_AUTH
333 extern KbdintDevice mm_bsdauth_device; 324 extern KbdintDevice mm_bsdauth_device;
334#endif 325#endif
335#ifdef USE_PAM
336 extern KbdintDevice mm_sshpam_device;
337#endif
338#ifdef SKEY 326#ifdef SKEY
339 extern KbdintDevice mm_skey_device; 327 extern KbdintDevice mm_skey_device;
340#endif 328#endif
341 329 /* As long as SSHv1 has devices[0] hard coded this is fine */
342#ifdef BSD_AUTH 330#ifdef BSD_AUTH
343 devices[n++] = &mm_bsdauth_device; 331 devices[0] = &mm_bsdauth_device;
344#else 332#else
345#ifdef USE_PAM
346 devices[n++] = &mm_sshpam_device;
347#endif
348#ifdef SKEY 333#ifdef SKEY
349 devices[n++] = &mm_skey_device; 334 devices[0] = &mm_skey_device;
350#endif 335#endif
351#endif 336#endif
352} 337}