X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=cmdgen.c;h=c15c01dd34bab2e82bd6529b78387344bbd93980;hb=a063e522970946bf7d5dc052079d7773c0dee76d;hp=33662c3be9f055bfd438d341b746961a71139794;hpb=40ce043a97c71374d2118ed636a36b16a148d411;p=PuTTY.git diff --git a/cmdgen.c b/cmdgen.c index 33662c3b..c15c01dd 100644 --- a/cmdgen.c +++ b/cmdgen.c @@ -102,6 +102,16 @@ void modalfatalbox(char *p, ...) cleanup_exit(1); } +void nonfatal(char *p, ...) +{ + va_list ap; + fprintf(stderr, "ERROR: "); + va_start(ap, p); + vfprintf(stderr, p, ap); + va_end(ap); + fputc('\n', stderr); +} + /* * Stubs to let everything else link sensibly. */ @@ -1024,6 +1034,8 @@ int main(int argc, char **argv) case SSHCOM: assert(sshver == 2); assert(ssh2key); + random_ref(); /* both foreign key types require randomness, + * for IV or padding */ ret = export_ssh2(outfilename, outtype, ssh2key, passphrase); if (!ret) { fprintf(stderr, "puttygen: unable to export key\n");