projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In Unix PuTTYgen, existing SSH-1 key comments were coming out as "(null)"
[u/mdw/putty]
/
cmdgen.c
diff --git
a/cmdgen.c
b/cmdgen.c
index
13c9ca1
..
20c0d11
100644
(file)
--- a/
cmdgen.c
+++ b/
cmdgen.c
@@
-690,8
+690,8
@@
int main(int argc, char **argv)
char *blob;
int n, l, bloblen;
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 */
blob = (char *)vblob;
n = 4; /* skip modulus bits */
@@
-709,7
+709,7
@@
int main(int argc, char **argv)
} else
n += l;
}
} else
n += l;
}
- ssh1key->comment =
NULL
;
+ ssh1key->comment =
dupstr(origcomment)
;
ssh1key->private_exponent = NULL;
} else {
ret = loadrsakey(&infilename, ssh1key, passphrase, &error);
ssh1key->private_exponent = NULL;
} else {
ret = loadrsakey(&infilename, ssh1key, passphrase, &error);