APPS: Improve diagnostics for string options and options expecting int >= 0
[openssl.git] / apps / enc.c
index 242d3ef0aa55d931d4d06d9690436fda167b197a..217526f450532ea2266993235672bd5ae11259ba 100644 (file)
@@ -266,8 +266,7 @@ int enc_main(int argc, char **argv)
             ciphername = opt_unknown();
             break;
         case OPT_ITER:
-            if (!opt_int(opt_arg(), &iter))
-                goto opthelp;
+            iter = opt_int_arg();
             pbkdf2 = 1;
             break;
         case OPT_PBKDF2: