summaryrefslogtreecommitdiff
path: root/auth2-pubkey.c
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2018-08-26 07:31:58 -0400
committerAndrew Cady <d@jerkface.net>2019-06-06 11:52:35 -0400
commit4738aeb85fa56865244969dee521ef7f24d4f7c1 (patch)
tree961b1a1e035958884d1d5405e63fa1045fc3b128 /auth2-pubkey.c
parent25fc10d774e95dff10918b889e61f171d6081d95 (diff)
variable renames, store key type
Diffstat (limited to 'auth2-pubkey.c')
-rw-r--r--auth2-pubkey.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/auth2-pubkey.c b/auth2-pubkey.c
index bf075c47d..d630d43ef 100644
--- a/auth2-pubkey.c
+++ b/auth2-pubkey.c
@@ -620,12 +620,13 @@ check_authkey_line(struct ssh *ssh, struct passwd *pw, struct sshkey *key,
620 goto fail_reason; 620 goto fail_reason;
621 } 621 }
622 622
623 wildcard_match = keytext; 623 wildcard_remote_key = keytext;
624 wildcard_fingerprint = sshkey_fingerprint(key, SSH_DIGEST_SHA256, SSH_FP_HEX); 624 wildcard_remote_key_type = sshkey_type(key);
625 wildcard_remote_key_fingerprint = sshkey_fingerprint(key, SSH_DIGEST_SHA256, SSH_FP_HEX);
625 626
626 verbose("Accepted wildcard authorization for %s key %s with forced_command=%s", 627 verbose("Accepted wildcard authorization for %s key %s with forced_command=%s",
627 sshkey_type(key), 628 sshkey_type(key),
628 wildcard_fingerprint, 629 wildcard_remote_key_fingerprint,
629 keyopts->force_command); 630 keyopts->force_command);
630 631
631 finalopts = keyopts; 632 finalopts = keyopts;