Skip to content

Commit

Permalink
fixup! Fixes an issue where a psk session was assumed to be a resumpt…
Browse files Browse the repository at this point in the history
…ion which failed a check when parsing the max_fragment_length extension hello from the client.
  • Loading branch information
fwh-dc committed Jun 4, 2024
1 parent f520033 commit 407aedc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/dtls_mtu_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,18 @@ static int test_server_mtu_larger_than_max_fragment_length(void)
NULL, NULL)))
goto end;

#ifndef OPENSSL_NO_SCTP
/**
* TODO(DTLSv1.3): Fix SCTP support
* This test is failing on exporting the sctp auth key on server and client
* because ossl_statem_export_allowed() fails.
* ossl_statem_server_post_work:internal error:ssl/statem/statem_srvr.c:937:
* and
* tls_process_server_hello:internal error:ssl/statem/statem_clnt.c:1763:
*/
OPENSSL_assert(SSL_set_max_proto_version(clnt_ssl, DTLS1_2_VERSION) == 1);
#endif

SSL_set_options(srvr_ssl, SSL_OP_NO_QUERY_MTU);
if (!TEST_true(DTLS_set_link_mtu(srvr_ssl, 1500)))
goto end;
Expand Down

0 comments on commit 407aedc

Please sign in to comment.