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:
parent
ded661cd07
commit
1d4009402e
2
sshdss.c
2
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);
|
||||
|
2
sshrsa.c
2
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user