summaryrefslogtreecommitdiff
path: root/ssh-keygen.c
diff options
context:
space:
mode:
authordtucker <dtucker>2008-06-12 18:42:14 +0000
committerdtucker <dtucker>2008-06-12 18:42:14 +0000
commitd5fc32b096aa7c3195b6fdac1c3653b0fedb8c53 (patch)
tree9aaafe349fcdcd59785f7c0dc7e354478abb9617 /ssh-keygen.c
parent333dce82b81f4bb521060769660f8c3add041a25 (diff)
downloadopenssh-d5fc32b096aa7c3195b6fdac1c3653b0fedb8c53.tar.gz
- grunk@cvs.openbsd.org 2008/06/11 21:38:25
[ssh-keygen.c] ssh-keygen -lv -f /etc/ssh/ssh_host_rsa_key.pub would not display you the random art as intended, spotted by canacar@
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r--ssh-keygen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c
index c22e814d..5d90e7a2 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.167 2008/06/11 21:01:35 grunk Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.168 2008/06/11 21:38:25 grunk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -522,9 +522,9 @@ do_fingerprint(struct passwd *pw)
public = key_load_public(identity_file, &comment);
if (public != NULL) {
fp = key_fingerprint(public, fptype, rep);
- ra = key_fingerprint(public, fptype, rep);
+ ra = key_fingerprint(public, fptype, SSH_FP_RANDOMART);
printf("%u %s %s\n", key_size(public), fp, comment);
- verbose("%s\n", ra);
+ verbose("%s", ra);
key_free(public);
xfree(comment);
xfree(ra);