summaryrefslogtreecommitdiffstats
path: root/apps/include
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-06-15 14:06:17 +1000
committerPauli <pauli@openssl.org>2021-06-16 18:32:30 +1000
commitfa8ff9e4e8e0937eb04bf16d0159c3aedbd33547 (patch)
tree96d31f85b2e4f047481e55eef6472bf244307ce7 /apps/include
parent6920055ec3ead883dfc6b00d650f6ef86f84aa17 (diff)
apps: limit get_cipher() to not return AEAD or XTS ciphers
Add a get_cipher_any() function to access these in addition to more normal ciphers Fixes #7720 Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15747)
Diffstat (limited to 'apps/include')
-rw-r--r--apps/include/opt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/include/opt.h b/apps/include/opt.h
index 96e78e4b79..4a292213fd 100644
--- a/apps/include/opt.h
+++ b/apps/include/opt.h
@@ -366,6 +366,7 @@ char *opt_flag(void);
char *opt_arg(void);
char *opt_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);
int opt_md(const char *name, EVP_MD **mdp);
int opt_md_silent(const char *name, EVP_MD **mdp);