Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -5533,6 +5533,9 @@ static int test_wolfSSL_clear_chain_certs(void)
return EXPECT_RESULT();
}

/* Guarded exactly as its only caller below is: the caller drives a full
* client/server handshake, so without the client this hook has no user and
* -Werror=unused-function rejects the build. */
#if !defined(NO_FILESYSTEM) && !defined(NO_CERTS) && defined(OPENSSL_EXTRA) && \
defined(KEEP_OUR_CERT) && !defined(NO_RSA) && !defined(NO_TLS) && \
!defined(NO_WOLFSSL_SERVER) && !defined(NO_WOLFSSL_CLIENT) && \
Expand Down
2 changes: 1 addition & 1 deletion tests/api/test_tls_msgtype.c
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ int test_tls_msgtype_connection_id(void)
{
EXPECT_DECLS;
#if defined(WOLFSSL_DTLS_CID) && !defined(NO_WOLFSSL_CLIENT) && !defined(NO_TLS) && \
defined(HAVE_TLS_EXTENSIONS)
defined(HAVE_TLS_EXTENSIONS) && defined(WOLFSSL_TLS13)
WOLFSSL_CTX* ctx = NULL;
WOLFSSL* ssl = NULL;
byte buf[8];
Expand Down
2 changes: 2 additions & 0 deletions tests/api/test_tls_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,7 @@ int test_TLSX_SecureRenegotiation_parse(void)
/* Client side response direction: *input == 2*TLS_FINISHED_SZ, but the
* declared extension length disagrees with it -- length is the
* second, independent half of that check. */
#ifndef NO_WOLFSSL_CLIENT
ctx = wolfSSL_CTX_new(wolfTLSv1_2_client_method());
ExpectNotNull(ctx);
ssl = NULL;
Expand Down Expand Up @@ -1183,6 +1184,7 @@ int test_TLSX_SecureRenegotiation_parse(void)
}
wolfSSL_free(ssl);
wolfSSL_CTX_free(ctx);
#endif
#endif
return EXPECT_RESULT();
}
Expand Down
Loading