summaryrefslogtreecommitdiff
path: root/auth2-pubkey.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-02-17 00:14:05 +0000
committerDamien Miller <djm@mindrot.org>2015-02-21 09:20:27 +1100
commit13a39414d25646f93e6d355521d832a03aaaffe2 (patch)
tree9acca1b745ff26c155b79c7323359f2eddf82991 /auth2-pubkey.c
parent773dda25e828c4c9a52f7bdce6e1e5924157beab (diff)
upstream commit
Regression: I broke logging of public key fingerprints in 1.46. Pointed out by Pontus Lundkvist
Diffstat (limited to 'auth2-pubkey.c')
-rw-r--r--auth2-pubkey.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth2-pubkey.c b/auth2-pubkey.c
index d8f0aa3e2..d943efa1e 100644
--- a/auth2-pubkey.c
+++ b/auth2-pubkey.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth2-pubkey.c,v 1.46 2015/01/28 22:36:00 djm Exp $ */ 1/* $OpenBSD: auth2-pubkey.c,v 1.47 2015/02/17 00:14:05 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000 Markus Friedl. All rights reserved.
4 * 4 *
@@ -234,14 +234,14 @@ pubkey_auth_info(Authctxt *authctxt, const Key *key, const char *fmt, ...)
234 key_type(key), key->cert->key_id, 234 key_type(key), key->cert->key_id,
235 (unsigned long long)key->cert->serial, 235 (unsigned long long)key->cert->serial,
236 key_type(key->cert->signature_key), 236 key_type(key->cert->signature_key),
237 fp == NULL ? "(null)" : "", 237 fp == NULL ? "(null)" : fp,
238 extra == NULL ? "" : ", ", extra == NULL ? "" : extra); 238 extra == NULL ? "" : ", ", extra == NULL ? "" : extra);
239 free(fp); 239 free(fp);
240 } else { 240 } else {
241 fp = sshkey_fingerprint(key, options.fingerprint_hash, 241 fp = sshkey_fingerprint(key, options.fingerprint_hash,
242 SSH_FP_DEFAULT); 242 SSH_FP_DEFAULT);
243 auth_info(authctxt, "%s %s%s%s", key_type(key), 243 auth_info(authctxt, "%s %s%s%s", key_type(key),
244 fp == NULL ? "(null)" : "", 244 fp == NULL ? "(null)" : fp,
245 extra == NULL ? "" : ", ", extra == NULL ? "" : extra); 245 extra == NULL ? "" : ", ", extra == NULL ? "" : extra);
246 free(fp); 246 free(fp);
247 } 247 }