Skip to content

Commit 8b039b0

Browse files
committed
Remove unnecessary test variation
1 parent f6310c0 commit 8b039b0

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

tests/api/test_ocsp.c

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -785,11 +785,6 @@ static int test_ocsp_tls_cert_cb_verify_cb(int preverify,
785785
defined(HAVE_WEBSERVER) || defined(HAVE_MEMCACHED)
786786
|| err == WOLFSSL_X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY
787787
|| err == WOLFSSL_X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT
788-
#endif
789-
#ifdef WOLFSSL_ALT_CERT_CHAINS
790-
/* Non-leaf cert errors are ignored with WOLFSSL_ALT_CERT_CHAINS so
791-
* we need to always check them anyway. */
792-
|| idx != 0
793788
#endif
794789
) {
795790
WOLFSSL_BUFFER_INFO* bInfo = &store->certs[idx];
@@ -891,13 +886,6 @@ int test_ocsp_tls_cert_cb(void)
891886
{
892887
EXPECT_DECLS;
893888
size_t i, j, chainLen;
894-
/* With WOLFSSL_ALT_CERT_CHAINS errors in non-leaf certs of the chain are
895-
* ignored. */
896-
#if !defined(WOLFSSL_ALT_CERT_CHAINS) || defined(WOLFSSL_VERIFY_CB_ALL_CERTS)
897-
#define MAXFAIL 3
898-
#else
899-
#define MAXFAIL 1
900-
#endif
901889
struct {
902890
method_provider client_meth;
903891
method_provider server_meth;
@@ -923,10 +911,10 @@ int test_ocsp_tls_cert_cb(void)
923911
#endif
924912
#endif
925913
#ifdef WOLFSSL_TLS13
926-
{ wolfTLSv1_3_client_method, wolfTLSv1_3_server_method, "TLSv1_3", 0, 0, MAXFAIL },
914+
{ wolfTLSv1_3_client_method, wolfTLSv1_3_server_method, "TLSv1_3", 0, 0, 3 },
927915
{ wolfTLSv1_3_client_method, wolfTLSv1_3_server_method, "TLSv1_3", 0, 0, 1 },
928916
#ifdef WOLFSSL_DTLS13
929-
{ wolfDTLSv1_3_client_method, wolfDTLSv1_3_server_method, "DTLSv1_3", 0, 0, MAXFAIL },
917+
{ wolfDTLSv1_3_client_method, wolfDTLSv1_3_server_method, "DTLSv1_3", 0, 0, 3 },
930918
{ wolfDTLSv1_3_client_method, wolfDTLSv1_3_server_method, "DTLSv1_3", 0, 0, 1 },
931919
#endif
932920
#endif

0 commit comments

Comments
 (0)