summaryrefslogtreecommitdiffstats
path: root/apps/include
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/include
parent1ae33400bf6559fa9ca9aa2232120dbc7ddc19b8 (diff)
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/include')
-rw-r--r--apps/include/opt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/include/opt.h b/apps/include/opt.h
index 79018c8cb8..c8024975b2 100644
--- a/apps/include/opt.h
+++ b/apps/include/opt.h
@@ -351,6 +351,7 @@ void opt_begin(void);
int opt_format(const char *s, unsigned long flags, int *result);
const char *format2str(int format);
int opt_int(const char *arg, int *result);
+int opt_int_arg(void);
int opt_ulong(const char *arg, unsigned long *result);
int opt_long(const char *arg, long *result);
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && \
@@ -368,6 +369,7 @@ int opt_pair(const char *arg, const OPT_PAIR * pairs, int *result);
int opt_string(const char *name, const char **options);
int opt_cipher(const char *name, EVP_CIPHER **cipherp);
int opt_md(const char *name, EVP_MD **mdp);
+char *opt_name(void);
char *opt_arg(void);
char *opt_flag(void);
char *opt_unknown(void);