Move ssh-keygen -T handling code to match upstream.

This commit is contained in:
Darren Tucker 2016-09-12 13:52:17 +10:00
parent d8c3cfbb01
commit af48d54136
1 changed files with 6 additions and 6 deletions

View File

@ -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: