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':
|
case 'j':
|
||||||
start_lineno = strtoul(optarg, NULL, 10);
|
start_lineno = strtoul(optarg, NULL, 10);
|
||||||
break;
|
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':
|
case 'K':
|
||||||
if (strlen(optarg) >= PATH_MAX)
|
if (strlen(optarg) >= PATH_MAX)
|
||||||
fatal("Checkpoint filename too long");
|
fatal("Checkpoint filename too long");
|
||||||
|
@ -2489,6 +2483,12 @@ main(int argc, char **argv)
|
||||||
if (BN_hex2bn(&start, optarg) == 0)
|
if (BN_hex2bn(&start, optarg) == 0)
|
||||||
fatal("Invalid start point.");
|
fatal("Invalid start point.");
|
||||||
break;
|
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 */
|
#endif /* WITH_OPENSSL */
|
||||||
case '?':
|
case '?':
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue