Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! Place start of ClientHello correctly when…
Browse files Browse the repository at this point in the history
… calculating binder for DTLS 1.3
  • Loading branch information
fwh-dc committed May 25, 2024
1 parent 0c43727 commit 4da9317
Show file tree
Hide file tree
Showing 2 changed files with 14 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 @@ -66,6 +66,18 @@ static int mtu_test(SSL_CTX *ctx, const char *cs, int no_etm)
if (no_etm)
SSL_set_options(srvr_ssl, SSL_OP_NO_ENCRYPT_THEN_MAC);

#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

if (!TEST_true(SSL_set_cipher_list(srvr_ssl, cs))
|| !TEST_true(SSL_set_cipher_list(clnt_ssl, cs))
|| !TEST_ptr(sc_bio = SSL_get_rbio(srvr_ssl))
Expand Down
2 changes: 2 additions & 0 deletions test/ssl-tests/29-dtls-sctp-label-bug.cnf.in
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ our @tests = (
},
{
name => "SCTPLabelBug-bad1",
# TODO(DTLSv1.3): Fix SCTP support
server => {
MaxProtocol => "DTLSv1.2"
},
Expand All @@ -56,6 +57,7 @@ our @tests = (
},
{
name => "SCTPLabelBug-bad2",
# TODO(DTLSv1.3): Fix SCTP support
server => {
MaxProtocol => "DTLSv1.2"
},
Expand Down

0 comments on commit 4da9317

Please sign in to comment.