From ed94b2ec9308cdac84fc477c0597938d52038e26 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sun, 26 Aug 2018 07:31:58 -0400 Subject: variable renames, store key type --- auth2-pubkey.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'auth2-pubkey.c') diff --git a/auth2-pubkey.c b/auth2-pubkey.c index bba8dfefa..73151b57c 100644 --- a/auth2-pubkey.c +++ b/auth2-pubkey.c @@ -644,12 +644,13 @@ check_authkey_line(struct ssh *ssh, struct passwd *pw, struct sshkey *key, goto fail_reason; } - wildcard_match = keytext; - wildcard_fingerprint = sshkey_fingerprint(key, SSH_DIGEST_SHA256, SSH_FP_HEX); + wildcard_remote_key = keytext; + wildcard_remote_key_type = sshkey_type(key); + wildcard_remote_key_fingerprint = sshkey_fingerprint(key, SSH_DIGEST_SHA256, SSH_FP_HEX); verbose("Accepted wildcard authorization for %s key %s with forced_command=%s", sshkey_type(key), - wildcard_fingerprint, + wildcard_remote_key_fingerprint, keyopts->force_command); finalopts = keyopts; -- cgit v1.2.3