diff options
Diffstat (limited to 'auth2-chall.c')
-rw-r--r-- | auth2-chall.c | 21 |
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 |
42 | extern KbdintDevice bsdauth_device; | 42 | extern KbdintDevice bsdauth_device; |
43 | #else | 43 | #else |
44 | #ifdef USE_PAM | ||
45 | extern KbdintDevice sshpam_device; | ||
46 | #endif | ||
47 | #ifdef SKEY | 44 | #ifdef SKEY |
48 | extern KbdintDevice skey_device; | 45 | extern 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) | |||
326 | void | 320 | void |
327 | privsep_challenge_enable(void) | 321 | privsep_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 | } |