Include key type in SSH2 key fingerprints, now we have more than one
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 2 Mar 2001 17:16:22 +0000 (17:16 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 2 Mar 2001 17:16:22 +0000 (17:16 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@971 cda61777-01e9-0310-a592-d414129be87e

sshdss.c
sshrsa.c

index cef8e74..1704f71 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 9a62491..6343944 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);