1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-12 18:13:50 -05:00

Include key type in SSH2 key fingerprints, now we have more than one

[originally from svn r971]
This commit is contained in:
Simon Tatham 2001-03-02 17:16:22 +00:00
parent ded661cd07
commit 1d4009402e
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);