forked from wolfSSL/wolfssl
Fix to allow anonymous ciphers to work with the new default suite testing.
This commit is contained in:
@@ -1155,7 +1155,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
|||||||
|
|
||||||
if (useAnon) {
|
if (useAnon) {
|
||||||
#ifdef HAVE_ANON
|
#ifdef HAVE_ANON
|
||||||
if (cipherList == NULL) {
|
if (cipherList == NULL || (cipherList && useDefCipherList)) {
|
||||||
wolfSSL_CTX_allow_anon_cipher(ctx);
|
wolfSSL_CTX_allow_anon_cipher(ctx);
|
||||||
if (wolfSSL_CTX_set_cipher_list(ctx,"ADH-AES128-SHA")
|
if (wolfSSL_CTX_set_cipher_list(ctx,"ADH-AES128-SHA")
|
||||||
!= SSL_SUCCESS) {
|
!= SSL_SUCCESS) {
|
||||||
|
@@ -831,7 +831,7 @@ THREAD_RETURN CYASSL_THREAD server_test(void* args)
|
|||||||
if (useAnon) {
|
if (useAnon) {
|
||||||
#ifdef HAVE_ANON
|
#ifdef HAVE_ANON
|
||||||
CyaSSL_CTX_allow_anon_cipher(ctx);
|
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)
|
if (SSL_CTX_set_cipher_list(ctx, "ADH-AES128-SHA") != SSL_SUCCESS)
|
||||||
err_sys("server can't set cipher list 4");
|
err_sys("server can't set cipher list 4");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user