Fix to allow anonymous ciphers to work with the new default suite testing.

This commit is contained in:
David Garske 2017-04-05 14:35:33 -07:00
parent eb40175cc6
commit 4ff2903b55
2 changed files with 2 additions and 2 deletions

View File

@ -1155,7 +1155,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
if (useAnon) {
#ifdef HAVE_ANON
if (cipherList == NULL) {
if (cipherList == NULL || (cipherList && useDefCipherList)) {
wolfSSL_CTX_allow_anon_cipher(ctx);
if (wolfSSL_CTX_set_cipher_list(ctx,"ADH-AES128-SHA")
!= SSL_SUCCESS) {

View File

@ -831,7 +831,7 @@ THREAD_RETURN CYASSL_THREAD server_test(void* args)
if (useAnon) {
#ifdef HAVE_ANON
CyaSSL_CTX_allow_anon_cipher(ctx);
if (cipherList == NULL) {
if (cipherList == NULL || (cipherList && useDefCipherList)) {
if (SSL_CTX_set_cipher_list(ctx, "ADH-AES128-SHA") != SSL_SUCCESS)
err_sys("server can't set cipher list 4");
}