1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 11:32:48 -05:00

Add ability for ssh2_userkey_loadpub() to return the key comment.

(Not actually used currently, but it makes life easier for a patch I'm
working on.)

[originally from svn r6433]
This commit is contained in:
Jacob Nevins
2005-10-30 13:42:36 +00:00
parent 69ac38c1a8
commit 49d2cf19ac
5 changed files with 16 additions and 8 deletions

View File

@ -722,7 +722,7 @@ int main(int argc, char **argv)
case SSH_KEYTYPE_SSH2:
if (!load_encrypted) {
ssh2blob = ssh2_userkey_loadpub(&infilename, &ssh2alg,
&ssh2bloblen, &error);
&ssh2bloblen, NULL, &error);
ssh2algf = find_pubkey_alg(ssh2alg);
if (ssh2algf)
bits = ssh2algf->pubkey_bits(ssh2blob, ssh2bloblen);