From: Dr. Stephen Henson Date: Thu, 15 May 2014 13:05:47 +0000 (+0100) Subject: Enc doesn't support AEAD ciphers. X-Git-Tag: OpenSSL_1_0_1h~40 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f9986e9abf8ed69e0d335539b7c7150581630eea;p=oweals%2Fopenssl.git Enc doesn't support AEAD ciphers. --- diff --git a/apps/enc.c b/apps/enc.c index 719acc3250..19ea3df940 100644 --- a/apps/enc.c +++ b/apps/enc.c @@ -331,6 +331,12 @@ bad: setup_engine(bio_err, engine, 0); #endif + if (cipher && EVP_CIPHER_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER) + { + BIO_printf(bio_err, "AEAD ciphers not supported by the enc utility\n"); + goto end; + } + if (md && (dgst=EVP_get_digestbyname(md)) == NULL) { BIO_printf(bio_err,"%s is an unsupported message digest type\n",md);