summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2018-12-25 14:44:11 +0300
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2018-12-28 11:32:35 +0300
commitb7fdb4125e4eebc5af2155b6d36cf17339a3abf5 (patch)
tree9f63776fc1582d6b35999b236a04dfb7a1a9c966
parentbfd036b31f2a47ae40e104b2ea1a0e095900cf52 (diff)
downloadgnutls-b7fdb4125e4eebc5af2155b6d36cf17339a3abf5.tar.gz
tests: cipher-openssl-compat: don't call EVP_CIPHER_CTX_init()
There is no need to call EVP_CIPHER_CTX_init() after EVP_CIPHER_CTX_new(). Fixes #658 Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
-rw-r--r--tests/slow/cipher-openssl-compat.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/slow/cipher-openssl-compat.c b/tests/slow/cipher-openssl-compat.c
index a4cb3522df..64adf25a45 100644
--- a/tests/slow/cipher-openssl-compat.c
+++ b/tests/slow/cipher-openssl-compat.c
@@ -106,7 +106,6 @@ static int cipher_test(const char *ocipher, gnutls_cipher_algorithm_t gcipher,
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
if (gcipher == GNUTLS_CIPHER_AES_128_CCM
|| gcipher == GNUTLS_CIPHER_AES_256_CCM) {
- assert(EVP_CIPHER_CTX_init(ctx)==1);
assert(EVP_CipherInit_ex(ctx, evp_cipher, 0, 0, 0, 0) >
0);