From fa8ff9e4e8e0937eb04bf16d0159c3aedbd33547 Mon Sep 17 00:00:00 2001 From: Pauli Date: Tue, 15 Jun 2021 14:06:17 +1000 Subject: 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 (Merged from https://github.com/openssl/openssl/pull/15747) --- apps/include/opt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/include') 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); -- cgit v1.2.3