summaryrefslogtreecommitdiffstats
path: root/test/ssltestlib.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2016-10-31 21:50:26 +0100
committerMatt Caswell <matt@openssl.org>2016-11-10 13:04:05 +0000
commit4e7a0fa104b0eb60a60f2d4cc4d7f8d9852a910c (patch)
treefb484933c1fcbd8cfd7bc1d236fe961f997f7b28 /test/ssltestlib.c
parente9fcdd2e69052412e67cbbf6e8b5bdc5b545d364 (diff)
test: add TLS application data corruption test.
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Diffstat (limited to 'test/ssltestlib.c')
-rw-r--r--test/ssltestlib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ssltestlib.c b/test/ssltestlib.c
index 655fc05cb2..4e20763bee 100644
--- a/test/ssltestlib.c
+++ b/test/ssltestlib.c
@@ -550,6 +550,10 @@ int create_ssl_ctx_pair(const SSL_METHOD *sm, const SSL_METHOD *cm,
goto err;
}
+#ifndef OPENSSL_NO_DH
+ SSL_CTX_set_dh_auto(serverctx, 1);
+#endif
+
*sctx = serverctx;
*cctx = clientctx;