1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

In Unix PuTTYgen, existing SSH-1 key comments were coming out as "(null)"

for operations not performing decryption (e.g., "puttygen rsa1.ppk -L")
(A use for r6434 -- wasn't expecting that.)

[originally from svn r6436]
[r6434 == c14f259ba2]
This commit is contained in:
Jacob Nevins 2005-10-30 19:13:43 +00:00
parent ff05fb7ccc
commit d6c13bd154

View File

@ -690,8 +690,8 @@ int main(int argc, char **argv)
char *blob;
int n, l, bloblen;
ret = rsakey_pubblob(&infilename, &vblob, &bloblen, NULL,
&error);
ret = rsakey_pubblob(&infilename, &vblob, &bloblen,
&origcomment, &error);
blob = (char *)vblob;
n = 4; /* skip modulus bits */
@ -709,7 +709,7 @@ int main(int argc, char **argv)
} else
n += l;
}
ssh1key->comment = NULL;
ssh1key->comment = dupstr(origcomment);
ssh1key->private_exponent = NULL;
} else {
ret = loadrsakey(&infilename, ssh1key, passphrase, &error);