diff options
Diffstat (limited to 'auth-rsa.c')
-rw-r--r-- | auth-rsa.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/auth-rsa.c b/auth-rsa.c index 522f01f84..e8bfa1651 100644 --- a/auth-rsa.c +++ b/auth-rsa.c | |||
@@ -14,7 +14,7 @@ | |||
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include "includes.h" | 16 | #include "includes.h" |
17 | RCSID("$OpenBSD: auth-rsa.c,v 1.31 2000/10/11 19:59:52 markus Exp $"); | 17 | RCSID("$OpenBSD: auth-rsa.c,v 1.32 2000/10/14 12:19:45 markus Exp $"); |
18 | 18 | ||
19 | #include "rsa.h" | 19 | #include "rsa.h" |
20 | #include "packet.h" | 20 | #include "packet.h" |
@@ -231,6 +231,12 @@ auth_rsa(struct passwd *pw, BIGNUM *client_n) | |||
231 | } | 231 | } |
232 | } else | 232 | } else |
233 | options = NULL; | 233 | options = NULL; |
234 | /* | ||
235 | * If our options do not allow this key to be used, | ||
236 | * do not send challenge. | ||
237 | */ | ||
238 | if (!auth_parse_options(pw, options, linenum)) | ||
239 | continue; | ||
234 | 240 | ||
235 | /* Parse the key from the line. */ | 241 | /* Parse the key from the line. */ |
236 | if (!auth_rsa_read_key(&cp, &bits, pk->e, pk->n)) { | 242 | if (!auth_rsa_read_key(&cp, &bits, pk->e, pk->n)) { |
@@ -269,9 +275,8 @@ auth_rsa(struct passwd *pw, BIGNUM *client_n) | |||
269 | * Break out of the loop if authentication was successful; | 275 | * Break out of the loop if authentication was successful; |
270 | * otherwise continue searching. | 276 | * otherwise continue searching. |
271 | */ | 277 | */ |
272 | authenticated = auth_parse_options(pw, options, linenum); | 278 | authenticated = 1; |
273 | if (authenticated) | 279 | break; |
274 | break; | ||
275 | } | 280 | } |
276 | 281 | ||
277 | /* Restore the privileged uid. */ | 282 | /* Restore the privileged uid. */ |