summaryrefslogtreecommitdiffstats
path: root/test/dtlstest.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-10-21 16:00:48 +0100
committerMatt Caswell <matt@openssl.org>2020-11-18 14:14:53 +0000
commit33c39a0659de257dde8ce28496f0ce6c16954430 (patch)
treec7ed94e5f43915ef28169791b9e604335d0bd483 /test/dtlstest.c
parent0437309fdf544492e272943e892523653df2f189 (diff)
Add a test for the various ways of setting temporary DH params
We support a number of different ways of setting temporary DH params. We should test that they all work correctly. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13368)
Diffstat (limited to 'test/dtlstest.c')
-rw-r--r--test/dtlstest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/dtlstest.c b/test/dtlstest.c
index 1ac2850fd7..efdf842e2d 100644
--- a/test/dtlstest.c
+++ b/test/dtlstest.c
@@ -162,6 +162,9 @@ static int test_dtls_drop_records(int idx)
&sctx, &cctx, cert, privkey)))
return 0;
+ if (!TEST_true(SSL_CTX_set_dh_auto(sctx, 1)))
+ goto end;
+
if (idx >= TOTAL_FULL_HAND_RECORDS) {
/* We're going to do a resumption handshake. Get a session first. */
if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl,