From ed8b87306d71b252b405ba60013e246f5936fdd2 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Thu, 30 Sep 2021 15:48:55 -0600 Subject: [PATCH] account for test case where psk and anon is off --- tests/api.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/api.c b/tests/api.c index 4fd1d9c56..c61adce10 100644 --- a/tests/api.c +++ b/tests/api.c @@ -6035,7 +6035,10 @@ static void test_wolfSSL_tls_export_run(int v) clientSessionSz); replySz = sizeof(reply); AssertIntGT(wolfSSL_tls_export(ssl, (byte*)reply, &replySz), 0); +#if !defined(NO_PSK) && defined(HAVE_ANON) + /* index 20 has is setting if PSK was on and 49 is if anon is allowed */ AssertIntEQ(XMEMCMP(reply, clientSession, replySz), 0); +#endif wolfSSL_set_fd(ssl, sockfd); AssertIntEQ(wolfSSL_write(ssl, msg, msgSz), msgSz);