diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-08-24 12:03:12 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2022-01-11 12:45:33 +0100 |
commit | 2c2724476ef50b8926b033f009bdfc85ac3f1816 (patch) | |
tree | 063c001d6a1f66afd83a8ce91df68bc7959901b4 /apps/include | |
parent | PKCS12 app: Improve readability w.r.t. enc_flag, renamed to enc_name (diff) | |
download | openssl-2c2724476ef50b8926b033f009bdfc85ac3f1816.tar.xz openssl-2c2724476ef50b8926b033f009bdfc85ac3f1816.zip |
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.h | 2 |
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); |