From 4ff2903b55b0905d4f965cc1fcf4553724d3db2b Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 5 Apr 2017 14:35:33 -0700 Subject: [PATCH] Fix to allow anonymous ciphers to work with the new default suite testing. --- examples/client/client.c | 2 +- examples/server/server.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/client/client.c b/examples/client/client.c index 1ca1c5fe2..8af4123ff 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -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) { diff --git a/examples/server/server.c b/examples/server/server.c index 82d17ad8b..dece767bf 100644 --- a/examples/server/server.c +++ b/examples/server/server.c @@ -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"); }