Skip to content

Commit f465ec8

Browse files
committed
Lets pretend that WolfSSL does not support AES-CTR
In Wolfcrypt, output length after CTR encryption is not the same as input length. This is different from openssl and this makes unit test aes-t fail. So disable CTR for now.
1 parent 88b7926 commit f465ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/ssl.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ MACRO (MYSQL_USE_BUNDLED_SSL)
5656
SET(SSL_INCLUDE_DIRS ${INC_DIRS})
5757
SET(SSL_DEFINES "-DHAVE_OPENSSL -DHAVE_WOLFSSL -DOPENSSL_ALL -DWOLFSSL_MYSQL_COMPATIBLE -DWC_NO_HARDEN")
5858
SET(HAVE_ERR_remove_thread_state ON CACHE INTERNAL "wolfssl doesn't have ERR_remove_thread_state")
59-
SET(HAVE_EncryptAes128Ctr ON CACHE INTERNAL "wolfssl does support AES-CTR")
59+
SET(HAVE_EncryptAes128Ctr OFF CACHE INTERNAL "wolfssl does support AES-CTR, but differently from openssl")
6060
SET(HAVE_EncryptAes128Gcm OFF CACHE INTERNAL "wolfssl does not support AES-GCM")
6161
SET(HAVE_X509_check_host ON CACHE INTERNAL "wolfssl does support X509_check_host")
6262
CHANGE_SSL_SETTINGS("bundled")

0 commit comments

Comments
 (0)