]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Include key type in SSH2 key fingerprints, now we have more than one
authorSimon Tatham <anakin@pobox.com>
Fri, 2 Mar 2001 17:16:22 +0000 (17:16 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 2 Mar 2001 17:16:22 +0000 (17:16 +0000)
[originally from svn r971]

sshdss.c
sshrsa.c

index cef8e74ef0d11c8446563138e56a8b2a1976898d..1704f719ae44af877f461e94cac6074f143950d8 100644 (file)
--- a/sshdss.c
+++ b/sshdss.c
@@ -161,7 +161,7 @@ static char *dss_fingerprint(void *key) {
 
     MD5Final(digest, &md5c);
 
-    sprintf(buffer, "%d ", ssh1_bignum_bitcount(dss->p));
+    sprintf(buffer, "ssh-dss %d ", ssh1_bignum_bitcount(dss->p));
     for (i = 0; i < 16; i++)
         sprintf(buffer+strlen(buffer), "%s%02x", i?":":"", digest[i]);
     ret = smalloc(strlen(buffer)+1);
index 9a62491a834fb9805c772a15d4511bb6e6b7bb90..634394478a0d85662c3b89bbb10fe0c5206f933a 100644 (file)
--- a/sshrsa.c
+++ b/sshrsa.c
@@ -258,7 +258,7 @@ static char *rsa2_fingerprint(void *key) {
 
     MD5Final(digest, &md5c);
 
-    sprintf(buffer, "%d ", ssh1_bignum_bitcount(rsa->modulus));
+    sprintf(buffer, "ssh-rsa %d ", ssh1_bignum_bitcount(rsa->modulus));
     for (i = 0; i < 16; i++)
         sprintf(buffer+strlen(buffer), "%s%02x", i?":":"", digest[i]);
     ret = smalloc(strlen(buffer)+1);