Hi,

openssl s_time command gets "invalid seconds argument for -time".
I think options_parse() should increment i for OPTION_ARG_TIME, too.
I attached the patch for this issue.

Sorry, now I am trying to learn about /usr/src source tree and cvs, still.
Then this patch is made from git repo of libressl-portable.

Best regards,

Kinichiro Inoguchi
diff --git src/usr.bin/openssl/apps.c src/usr.bin/openssl/apps.c
index d1d0d14..525166e 100644
--- src/usr.bin/openssl/apps.c
+++ src/usr.bin/openssl/apps.c
@@ -2218,7 +2218,8 @@ options_parse(int argc, char **argv, struct option *opts, 
char **unnamed,
                    opt->type == OPTION_ARG_FORMAT ||
                    opt->type == OPTION_ARG_FUNC ||
                    opt->type == OPTION_ARG_INT ||
-                   opt->type == OPTION_ARG_LONG) {
+                   opt->type == OPTION_ARG_LONG ||
+                   opt->type == OPTION_ARG_TIME) {
                        if (++i >= argc) {
                                fprintf(stderr, "missing %s argument for -%s\n",
                                    opt->argname, opt->name);

Reply via email to