Move ssh-keygen -T handling code to match upstream.
This commit is contained in:
parent
d8c3cfbb01
commit
af48d54136
12
ssh-keygen.c
12
ssh-keygen.c
|
@ -2467,12 +2467,6 @@ main(int argc, char **argv)
|
|||
case 'j':
|
||||
start_lineno = strtoul(optarg, NULL, 10);
|
||||
break;
|
||||
case 'T':
|
||||
do_screen_candidates = 1;
|
||||
if (strlcpy(out_file, optarg, sizeof(out_file)) >=
|
||||
sizeof(out_file))
|
||||
fatal("Output filename too long");
|
||||
break;
|
||||
case 'K':
|
||||
if (strlen(optarg) >= PATH_MAX)
|
||||
fatal("Checkpoint filename too long");
|
||||
|
@ -2489,6 +2483,12 @@ main(int argc, char **argv)
|
|||
if (BN_hex2bn(&start, optarg) == 0)
|
||||
fatal("Invalid start point.");
|
||||
break;
|
||||
case 'T':
|
||||
do_screen_candidates = 1;
|
||||
if (strlcpy(out_file, optarg, sizeof(out_file)) >=
|
||||
sizeof(out_file))
|
||||
fatal("Output filename too long");
|
||||
break;
|
||||
#endif /* WITH_OPENSSL */
|
||||
case '?':
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue