]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Move ssh-keygen -T handling code to match upstream.
authorDarren Tucker <dtucker@zip.com.au>
Mon, 12 Sep 2016 03:52:17 +0000 (13:52 +1000)
committerDarren Tucker <dtucker@zip.com.au>
Mon, 12 Sep 2016 03:52:17 +0000 (13:52 +1000)
ssh-keygen.c

index 09d995ffbcc43aa153ad564876c11e12235d2fc3..07f78eefb2a5200738f5e3fbfa81481f78924940 100644 (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: