mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-10-24 04:09:07 +03:00
Address review: check EVP_CIPHER_CTX_mode against CBC mode in test
This commit is contained in:
committed by
Paul Adelsbach
parent
1208e51bd8
commit
7638751fdb
@@ -43350,8 +43350,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t openssl_test(void)
|
||||
if (wolfSSL_EVP_CIPHER_CTX_mode(NULL) != 0)
|
||||
ERROR_OUT(WC_TEST_RET_ENC_NC, out);
|
||||
|
||||
if (wolfSSL_EVP_CIPHER_CTX_mode(en) !=
|
||||
(int)(en->flags & WOLFSSL_EVP_CIPH_MODE))
|
||||
if (wolfSSL_EVP_CIPHER_CTX_mode(en) != WOLFSSL_EVP_CIPH_CBC_MODE)
|
||||
ERROR_OUT(WC_TEST_RET_ENC_NC, out);
|
||||
|
||||
if (wolfSSL_EVP_CIPHER_CTX_cleanup(en) != WOLFSSL_SUCCESS)
|
||||
|
||||
Reference in New Issue
Block a user