summaryrefslogtreecommitdiff
path: root/apps/pkcs12.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-04-21 13:08:21 +0200
committerDr. David von Oheimb <dev@ddvo.net>2021-04-24 18:54:32 +0200
commitd830526c711074fdcd82c70c24c31444366a1ed8 (patch)
treeb0b29b721564c2b5a25765f5fd33902c46122588 /apps/pkcs12.c
parent1ae33400bf6559fa9ca9aa2232120dbc7ddc19b8 (diff)
downloadopenssl-new-d830526c711074fdcd82c70c24c31444366a1ed8.tar.gz
APPS: Improve diagnostics for string options and options expecting int >= 0
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14970)
Diffstat (limited to 'apps/pkcs12.c')
-rw-r--r--apps/pkcs12.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/pkcs12.c b/apps/pkcs12.c
index e8adeccb5c..306bcda7b4 100644
--- a/apps/pkcs12.c
+++ b/apps/pkcs12.c
@@ -235,9 +235,7 @@ int pkcs12_main(int argc, char **argv)
enc_flag = opt_unknown();
break;
case OPT_ITER:
- if (!opt_int(opt_arg(), &iter))
- goto opthelp;
- maciter = iter;
+ maciter = iter = opt_int_arg();
break;
case OPT_NOITER:
iter = 1;