Skip to content

Commit

Permalink
acert: pacify clang-tidy in tests/api.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
philljj committed Nov 11, 2024
1 parent e9bc672 commit c6df47d
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -14123,15 +14123,14 @@ static int test_wolfSSL_X509_ACERT_asn(void)
ExpectNotNull(acert);
#endif

#ifdef WOLFSSL_SMALL_STACK
if (acert != NULL)
#endif
{
if (der != NULL && der->buffer != NULL) {
wc_InitDecodedAcert(acert, der->buffer, der->length, HEAP_HINT);
rc = wc_ParseX509Acert(acert, VERIFY_SKIP_DATE);
ExpectIntEQ(rc, 0);
}
if (der != NULL && der->buffer != NULL
#ifdef WOLFSSL_SMALL_STACK
&& acert != NULL
#endif
) {
wc_InitDecodedAcert(acert, der->buffer, der->length, HEAP_HINT);
rc = wc_ParseX509Acert(acert, VERIFY_SKIP_DATE);
ExpectIntEQ(rc, 0);

ExpectIntEQ(acert->serialSz, 20);
ExpectIntEQ(XMEMCMP(acert->serial, ietf_serial, sizeof(ietf_serial)),
Expand Down

0 comments on commit c6df47d

Please sign in to comment.