projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f5e321
)
Enc doesn't support AEAD ciphers.
author
Dr. Stephen Henson
<steve@openssl.org>
Thu, 15 May 2014 13:05:47 +0000
(14:05 +0100)
committer
Dr. Stephen Henson
<steve@openssl.org>
Thu, 15 May 2014 13:16:44 +0000
(14:16 +0100)
apps/enc.c
patch
|
blob
|
history
diff --git
a/apps/enc.c
b/apps/enc.c
index 719acc3250530d99b39e9bf66800237643466b73..19ea3df9409e81d4b2627024c5b720efb417dd68 100644
(file)
--- 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);