Bugzilla – Attachment 1651 Details for
Bug 1611
ssh-keygen prints wrong randomart if bubblebabble is also printed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Suggested fix to always print out randomart based on MD5
openssh.randomart.diff (text/plain), 1.29 KB, created by
Frank Wojcik
on 2009-06-19 07:13:06 AEST
(
hide
)
Description:
Suggested fix to always print out randomart based on MD5
Filename:
MIME Type:
Creator:
Frank Wojcik
Created:
2009-06-19 07:13:06 AEST
Size:
1.29 KB
patch
obsolete
>--- ssh-keygen.c~ 2009-02-21 13:47:02.000000000 -0800 >+++ ssh-keygen.c 2009-06-18 14:12:26.000000000 -0700 >@@ -524,7 +524,7 @@ > public = key_load_public(identity_file, &comment); > if (public != NULL) { > fp = key_fingerprint(public, fptype, rep); >- ra = key_fingerprint(public, fptype, SSH_FP_RANDOMART); >+ ra = key_fingerprint(public, SSH_FP_MD5, SSH_FP_RANDOMART); > printf("%u %s %s (%s)\n", key_size(public), fp, comment, > key_type(public)); > if (log_level >= SYSLOG_LEVEL_VERBOSE) >@@ -589,7 +589,7 @@ > } > comment = *cp ? cp : comment; > fp = key_fingerprint(public, fptype, rep); >- ra = key_fingerprint(public, fptype, SSH_FP_RANDOMART); >+ ra = key_fingerprint(public, SSH_FP_MD5, SSH_FP_RANDOMART); > printf("%u %s %s (%s)\n", key_size(public), fp, > comment ? comment : "no comment", key_type(public)); > if (log_level >= SYSLOG_LEVEL_VERBOSE) >@@ -619,7 +619,7 @@ > fptype = print_bubblebabble ? SSH_FP_SHA1 : SSH_FP_MD5; > rep = print_bubblebabble ? SSH_FP_BUBBLEBABBLE : SSH_FP_HEX; > fp = key_fingerprint(public, fptype, rep); >- ra = key_fingerprint(public, fptype, SSH_FP_RANDOMART); >+ ra = key_fingerprint(public, SSH_FP_MD5, SSH_FP_RANDOMART); > printf("%u %s %s (%s)\n", key_size(public), fp, name, > key_type(public)); > if (log_level >= SYSLOG_LEVEL_VERBOSE)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1611
: 1651