"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cmdgen.c" between
putty-0.75.tar.gz and putty-0.76.tar.gz

About: PuTTY is a free implementation of Telnet and SSH for Windows and Unix platforms, along with an xterm terminal emulator.

cmdgen.c  (putty-0.75):cmdgen.c  (putty-0.76)
skipping to change at line 1286 skipping to change at line 1286
ptrlen algname = get_string(src); ptrlen algname = get_string(src);
const ssh_keyalg *alg = find_pubkey_alg_len(algname); const ssh_keyalg *alg = find_pubkey_alg_len(algname);
if (!alg) { if (!alg) {
fprintf(stderr, "puttygen: cannot extract key components " fprintf(stderr, "puttygen: cannot extract key components "
"from public key of unknown type '%.*s'\n", "from public key of unknown type '%.*s'\n",
PTRLEN_PRINTF(algname)); PTRLEN_PRINTF(algname));
RETURN(1); RETURN(1);
} }
ssh_key *sk = ssh_key_new_pub( ssh_key *sk = ssh_key_new_pub(
alg, ptrlen_from_strbuf(ssh2blob)); alg, ptrlen_from_strbuf(ssh2blob));
if (!sk) {
fprintf(stderr, "puttygen: unable to decode public key\n");
RETURN(1);
}
kc = ssh_key_components(sk); kc = ssh_key_components(sk);
ssh_key_free(sk); ssh_key_free(sk);
} }
} }
FILE *fp; FILE *fp;
if (outfile) { if (outfile) {
fp = f_open(outfilename, "w", false); fp = f_open(outfilename, "w", false);
if (!fp) { if (!fp) {
fprintf(stderr, "unable to open output file\n"); fprintf(stderr, "unable to open output file\n");
 End of changes. 1 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)