summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2016-09-14 20:11:27 +0000
committerDamien Miller <djm@cvs.openbsd.org>2016-09-14 20:11:27 +0000
commit16d28241f468c366b201ce14448f53c133c0be51 (patch)
tree68a0c13228e8490085aa5b5029b319d35ea51539 /usr.bin/ssh
parenta8218c38d6ca2c722159d4ce3b2d50a2bb5832f2 (diff)
take fingerprint of correct key for AuthorizedPrincipalsCommand
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/auth2-pubkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth2-pubkey.c b/usr.bin/ssh/auth2-pubkey.c
index 8e8ea599118..0c71b9608d8 100644
--- a/usr.bin/ssh/auth2-pubkey.c
+++ b/usr.bin/ssh/auth2-pubkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-pubkey.c,v 1.56 2016/09/14 05:42:25 djm Exp $ */
+/* $OpenBSD: auth2-pubkey.c,v 1.57 2016/09/14 20:11:26 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -678,7 +678,7 @@ match_principals_command(struct passwd *user_pw, const struct sshkey *key)
error("%s: sshkey_fingerprint failed", __func__);
goto out;
}
- if ((key_fp = sshkey_fingerprint(cert->signature_key,
+ if ((key_fp = sshkey_fingerprint(key,
options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL) {
error("%s: sshkey_fingerprint failed", __func__);
goto out;