diff options
author | Andy Polyakov <appro@openssl.org> | 2015-12-09 21:35:30 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2015-12-10 12:00:46 +0100 |
commit | eb85cb8632ad5d868a5634b3ce18846ae351c380 (patch) | |
tree | dac0c2aedf03259b5ad6016091dda379d8419ca4 /test | |
parent | bd989745b7a4796dceff89d93b6b7ac1561c6227 (diff) |
test/evp_test.c: allow generic AEAD ciphers to be tested.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/evp_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/evp_test.c b/test/evp_test.c index 725af8a53a..ec2283a50f 100644 --- a/test/evp_test.c +++ b/test/evp_test.c @@ -774,6 +774,8 @@ static int cipher_test_init(struct evp_test *t, const char *alg) || EVP_CIPHER_mode(cipher) == EVP_CIPH_OCB_MODE || EVP_CIPHER_mode(cipher) == EVP_CIPH_CCM_MODE) cdat->aead = EVP_CIPHER_mode(cipher); + else if (EVP_CIPHER_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER) + cdat->aead = -1; else cdat->aead = 0; |