From 1bbb2c343bfdaabb09d340ec97ae35586995ef50 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sat, 8 Jun 2019 23:18:46 -0400 Subject: Comment our function --- auth2-pubkey.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/auth2-pubkey.c b/auth2-pubkey.c index 2db435c1d..3e8b9f8a6 100644 --- a/auth2-pubkey.c +++ b/auth2-pubkey.c @@ -579,6 +579,12 @@ match_principals_command(struct ssh *ssh, struct passwd *user_pw, return found_principal; } +/* Just like check_authkey_line, except check for a valid wildcard entry. + * + * Check a single line of an authorized_keys-format file. Returns 0 if key + * matches, -1 otherwise. Will return key/cert options via *authoptsp on + * success. "loc" is used as file/line location in log messages. + */ static int check_authkey_line_for_wildcard(struct sshkey *key, char *cp, const char *loc, struct sshauthopt **authoptsp) { -- cgit v1.2.3