Skip to content

Commit

Permalink
Fix no-dtls1_2
Browse files Browse the repository at this point in the history
dtlstest.c needs some adjusting to handle no-dtls1_2 since commit
7bf2e4d banned DTLSv1 at the default security level - causing the
test to fail.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from #18848)
  • Loading branch information
mattcaswell authored and hlandau committed Jul 25, 2022
1 parent 54a84f0 commit a6843e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/dtlstest.c
Expand Up @@ -405,6 +405,12 @@ static int test_just_finished(void)
&sctx, NULL, cert, privkey)))
return 0;

#ifdef OPENSSL_NO_DTLS1_2
/* DTLSv1 is not allowed at the default security level */
if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "DEFAULT:@SECLEVEL=0")))
goto end;
#endif

serverssl = SSL_new(sctx);
rbio = BIO_new(BIO_s_mem());
wbio = BIO_new(BIO_s_mem());
Expand Down

0 comments on commit a6843e6

Please sign in to comment.