Move ssh-keygen -W handling code to match upstream
diff --git a/ssh-keygen.c b/ssh-keygen.c
index 07f78ee..bf7ade9 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -2448,13 +2448,6 @@
break;
#ifdef WITH_OPENSSL
/* Moduli generation/screening */
- case 'W':
- generator_wanted = (u_int32_t)strtonum(optarg, 1,
- UINT_MAX, &errstr);
- if (errstr)
- fatal("Desired generator has bad value: %s (%s)",
- optarg, errstr);
- break;
case 'G':
do_gen_candidates = 1;
if (strlcpy(out_file, optarg, sizeof(out_file)) >=
@@ -2489,6 +2482,13 @@
sizeof(out_file))
fatal("Output filename too long");
break;
+ case 'W':
+ generator_wanted = (u_int32_t)strtonum(optarg, 1,
+ UINT_MAX, &errstr);
+ if (errstr)
+ fatal("Desired generator has bad value: %s (%s)",
+ optarg, errstr);
+ break;
#endif /* WITH_OPENSSL */
case '?':
default: