@@ -7584,12 +7584,8 @@ int test_ssl_memio_setup(test_ssl_memio_ctx *ctx)
75847584 ExpectNotNull(ctx->c_ssl = wolfSSL_new(ctx->c_ctx));
75857585 wolfSSL_SetIOWriteCtx(ctx->c_ssl, ctx);
75867586 wolfSSL_SetIOReadCtx(ctx->c_ssl, ctx);
7587- if (0
75887587#if defined(OPENSSL_EXTRA) || defined(WOLFSSL_EITHER_SIDE)
7589- || c_sharedCtx
7590- #endif
7591- )
7592- {
7588+ if (c_sharedCtx) {
75937589 if (*clientCertFile != '\0') {
75947590 ExpectIntEQ(wolfSSL_use_certificate_chain_file(ctx->c_ssl,
75957591 clientCertFile), WOLFSSL_SUCCESS);
@@ -7599,6 +7595,7 @@ int test_ssl_memio_setup(test_ssl_memio_ctx *ctx)
75997595 WOLFSSL_FILETYPE_PEM), WOLFSSL_SUCCESS);
76007596 }
76017597 }
7598+ #endif
76027599 if (ctx->c_cb.ssl_ready != NULL) {
76037600 ExpectIntEQ(ctx->c_cb.ssl_ready(ctx->c_ssl), TEST_SUCCESS);
76047601 }
@@ -7609,12 +7606,8 @@ int test_ssl_memio_setup(test_ssl_memio_ctx *ctx)
76097606 ExpectNotNull(ctx->s_ssl = wolfSSL_new(ctx->s_ctx));
76107607 wolfSSL_SetIOWriteCtx(ctx->s_ssl, ctx);
76117608 wolfSSL_SetIOReadCtx(ctx->s_ssl, ctx);
7612- if (0
76137609#if defined(OPENSSL_EXTRA) || defined(WOLFSSL_EITHER_SIDE)
7614- || s_sharedCtx
7615- #endif
7616- )
7617- {
7610+ if (s_sharedCtx) {
76187611 if (*serverCertFile != '\0') {
76197612 ExpectIntEQ(wolfSSL_use_certificate_chain_file(ctx->s_ssl,
76207613 serverCertFile), WOLFSSL_SUCCESS);
@@ -7624,6 +7617,7 @@ int test_ssl_memio_setup(test_ssl_memio_ctx *ctx)
76247617 WOLFSSL_FILETYPE_PEM), WOLFSSL_SUCCESS);
76257618 }
76267619 }
7620+ #endif
76277621#if !defined(NO_FILESYSTEM) && !defined(NO_DH)
76287622 wolfSSL_SetTmpDH_file(ctx->s_ssl, dhParamFile, WOLFSSL_FILETYPE_PEM);
76297623#elif !defined(NO_DH)
0 commit comments