mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
account for test case where psk and anon is off
This commit is contained in:
@ -6035,7 +6035,10 @@ static void test_wolfSSL_tls_export_run(int v)
|
|||||||
clientSessionSz);
|
clientSessionSz);
|
||||||
replySz = sizeof(reply);
|
replySz = sizeof(reply);
|
||||||
AssertIntGT(wolfSSL_tls_export(ssl, (byte*)reply, &replySz), 0);
|
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);
|
AssertIntEQ(XMEMCMP(reply, clientSession, replySz), 0);
|
||||||
|
#endif
|
||||||
wolfSSL_set_fd(ssl, sockfd);
|
wolfSSL_set_fd(ssl, sockfd);
|
||||||
|
|
||||||
AssertIntEQ(wolfSSL_write(ssl, msg, msgSz), msgSz);
|
AssertIntEQ(wolfSSL_write(ssl, msg, msgSz), msgSz);
|
||||||
|
Reference in New Issue
Block a user