diff options
author | Andrew Cady <d@jerkface.net> | 2018-08-26 07:31:58 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2021-03-13 10:46:55 -0500 |
commit | ed94b2ec9308cdac84fc477c0597938d52038e26 (patch) | |
tree | 0b34c611d3c3a85146b799ded89530c2a2b4a2fd /auth2-pubkey.c | |
parent | 989d38d6be766bff5002f169e05385f95020940b (diff) |
variable renames, store key type
Diffstat (limited to 'auth2-pubkey.c')
-rw-r--r-- | auth2-pubkey.c | 7 |
1 files changed, 4 insertions, 3 deletions
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, | |||
644 | goto fail_reason; | 644 | goto fail_reason; |
645 | } | 645 | } |
646 | 646 | ||
647 | wildcard_match = keytext; | 647 | wildcard_remote_key = keytext; |
648 | wildcard_fingerprint = sshkey_fingerprint(key, SSH_DIGEST_SHA256, SSH_FP_HEX); | 648 | wildcard_remote_key_type = sshkey_type(key); |
649 | wildcard_remote_key_fingerprint = sshkey_fingerprint(key, SSH_DIGEST_SHA256, SSH_FP_HEX); | ||
649 | 650 | ||
650 | verbose("Accepted wildcard authorization for %s key %s with forced_command=%s", | 651 | verbose("Accepted wildcard authorization for %s key %s with forced_command=%s", |
651 | sshkey_type(key), | 652 | sshkey_type(key), |
652 | wildcard_fingerprint, | 653 | wildcard_remote_key_fingerprint, |
653 | keyopts->force_command); | 654 | keyopts->force_command); |
654 | 655 | ||
655 | finalopts = keyopts; | 656 | finalopts = keyopts; |