summaryrefslogtreecommitdiffstats
path: root/apps/include
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-08-24 12:03:12 +0200
committerDr. David von Oheimb <dev@ddvo.net>2022-01-11 12:45:33 +0100
commit2c2724476ef50b8926b033f009bdfc85ac3f1816 (patch)
tree063c001d6a1f66afd83a8ce91df68bc7959901b4 /apps/include
parent870871e5df4f47611c38e81d3f50e38cbf362082 (diff)
APPS: Add check for multiple 'unknown' options
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/16416)
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 9493901c44..365eae5bc8 100644
--- a/apps/include/opt.h
+++ b/apps/include/opt.h
@@ -365,6 +365,7 @@ int opt_next(void);
char *opt_flag(void);
char *opt_arg(void);
char *opt_unknown(void);
+void reset_unknown(void);
int opt_cipher(const char *name, EVP_CIPHER **cipherp);
int opt_cipher_any(const char *name, EVP_CIPHER **cipherp);
int opt_cipher_silent(const char *name, EVP_CIPHER **cipherp);
@@ -373,6 +374,7 @@ int opt_md(const char *name, EVP_MD **mdp);
int opt_md_silent(const char *name, EVP_MD **mdp);
int opt_int(const char *arg, int *result);
+void opt_set_unknown_name(const char *name);
int opt_int_arg(void);
int opt_long(const char *arg, long *result);
int opt_ulong(const char *arg, unsigned long *result);