diff options
author | Matt Caswell <matt@openssl.org> | 2022-07-22 11:12:52 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2022-07-25 07:35:32 +0100 |
commit | a6843e6ae8ae0551aae8555783f06dab7951f112 (patch) | |
tree | a927f7dde133f19ab2e7fbd32de2cf76cfedf667 /test/dtlstest.c | |
parent | 54a84f02998b72fa63cd5309d915e43cfd85a06b (diff) |
Fix no-dtls1_2
dtlstest.c needs some adjusting to handle no-dtls1_2 since commit
7bf2e4d7f0c 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 https://github.com/openssl/openssl/pull/18848)
Diffstat (limited to 'test/dtlstest.c')
-rw-r--r-- | test/dtlstest.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/dtlstest.c b/test/dtlstest.c index e2359addbf..bb781604fa 100644 --- a/test/dtlstest.c +++ b/test/dtlstest.c @@ -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()); |