Displaying 1 result from an estimated 1 matches for "do_gen_candidates".
2007 Mar 01
1
Proposed patch: ssh-keygen allows writing to stdout for moduli generation
...tdout, to do
something like e.g.:
$ ssh-keygen -G - -b 2048 | ssh-keygen -T - -f - >moduli
Best regards,
Christian
--- ssh/ssh-keygen.c.old 2007-03-01 12:43:06.000000000 +0100
+++ ssh/ssh-keygen.c 2007-03-01 12:47:32.000000000 +0100
@@ -1270,13 +1270,16 @@ main(int ac, char **av)
}
if (do_gen_candidates) {
- FILE *out = fopen(out_file, "w");
-
- if (out == NULL) {
- error("Couldn't open modulus candidate file \"%s\": %s",
- out_file, strerror(errno));
- return (1);
- }
+ FILE *out;
+
+ if (strcmp(out_file, "-") != 0) {
+ if ((out = fop...