diff options
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth2.c,v 1.119 2008/07/04 23:30:16 djm Exp $ */ | 1 | /* $OpenBSD: auth2.c,v 1.120 2008/11/04 08:22:12 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -71,6 +71,9 @@ extern Authmethod method_hostbased; | |||
71 | #ifdef GSSAPI | 71 | #ifdef GSSAPI |
72 | extern Authmethod method_gssapi; | 72 | extern Authmethod method_gssapi; |
73 | #endif | 73 | #endif |
74 | #ifdef JPAKE | ||
75 | extern Authmethod method_jpake; | ||
76 | #endif | ||
74 | 77 | ||
75 | Authmethod *authmethods[] = { | 78 | Authmethod *authmethods[] = { |
76 | &method_none, | 79 | &method_none, |
@@ -78,6 +81,9 @@ Authmethod *authmethods[] = { | |||
78 | #ifdef GSSAPI | 81 | #ifdef GSSAPI |
79 | &method_gssapi, | 82 | &method_gssapi, |
80 | #endif | 83 | #endif |
84 | #ifdef JPAKE | ||
85 | &method_jpake, | ||
86 | #endif | ||
81 | &method_passwd, | 87 | &method_passwd, |
82 | &method_kbdint, | 88 | &method_kbdint, |
83 | &method_hostbased, | 89 | &method_hostbased, |
@@ -257,8 +263,12 @@ input_userauth_request(int type, u_int32_t seq, void *ctxt) | |||
257 | } | 263 | } |
258 | /* reset state */ | 264 | /* reset state */ |
259 | auth2_challenge_stop(authctxt); | 265 | auth2_challenge_stop(authctxt); |
266 | #ifdef JPAKE | ||
267 | auth2_jpake_stop(authctxt); | ||
268 | #endif | ||
260 | 269 | ||
261 | #ifdef GSSAPI | 270 | #ifdef GSSAPI |
271 | /* XXX move to auth2_gssapi_stop() */ | ||
262 | dispatch_set(SSH2_MSG_USERAUTH_GSSAPI_TOKEN, NULL); | 272 | dispatch_set(SSH2_MSG_USERAUTH_GSSAPI_TOKEN, NULL); |
263 | dispatch_set(SSH2_MSG_USERAUTH_GSSAPI_EXCHANGE_COMPLETE, NULL); | 273 | dispatch_set(SSH2_MSG_USERAUTH_GSSAPI_EXCHANGE_COMPLETE, NULL); |
264 | #endif | 274 | #endif |