Skip to content

Commit

Permalink
fixup! Extend the multi_resume test for simultaneous resumptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcaswell committed Apr 5, 2024
1 parent d4adf20 commit 29fdae0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/sslapitest.c
Original file line number Diff line number Diff line change
Expand Up @@ -11698,8 +11698,17 @@ static int test_multi_resume(int idx)
int i, testresult = 0;
struct resume_servername_cb_data cbdata;

#if defined(OPENSSL_NO_TLS1_2)
if (idx == 4)
return TEST_skip("TLSv1.2 is disabled in this build");
#else
if (idx == 4)
max_version = TLS1_2_VERSION;
#endif
#if defined(OSSL_NO_USABLE_TLS1_3)
if (idx != 4)
return TEST_skip("No usable TLSv1.3 in this build");
#endif

if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
TLS_client_method(), TLS1_VERSION,
Expand Down

0 comments on commit 29fdae0

Please sign in to comment.