diff options
author | Matt Caswell <matt@openssl.org> | 2020-10-21 16:00:48 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-11-18 14:14:53 +0000 |
commit | 33c39a0659de257dde8ce28496f0ce6c16954430 (patch) | |
tree | c7ed94e5f43915ef28169791b9e604335d0bd483 /test/dtlstest.c | |
parent | 0437309fdf544492e272943e892523653df2f189 (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.c | 3 |
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, |