diff options
-rw-r--r-- | auth2-pubkey.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/auth2-pubkey.c b/auth2-pubkey.c index a3cee1776..51f5edb0f 100644 --- a/auth2-pubkey.c +++ b/auth2-pubkey.c | |||
@@ -565,6 +565,12 @@ match_principals_command(struct ssh *ssh, struct passwd *user_pw, | |||
565 | return found_principal; | 565 | return found_principal; |
566 | } | 566 | } |
567 | 567 | ||
568 | /* Just like check_authkey_line, except check for a valid wildcard entry. | ||
569 | * | ||
570 | * Check a single line of an authorized_keys-format file. Returns 0 if key | ||
571 | * matches, -1 otherwise. Will return key/cert options via *authoptsp on | ||
572 | * success. "loc" is used as file/line location in log messages. | ||
573 | */ | ||
568 | static int | 574 | static int |
569 | check_authkey_line_for_wildcard(struct sshkey *key, char *cp, const char *loc, struct sshauthopt **authoptsp) | 575 | check_authkey_line_for_wildcard(struct sshkey *key, char *cp, const char *loc, struct sshauthopt **authoptsp) |
570 | { | 576 | { |