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:11 +0000
commitc5a569927fb7bcfa34dde76dbc021d4f8a5c8fb1 (patch)
tree03923cf0401bbc435f55f906b4c87d3dc2ac6cb2 /test/ssltestlib.c
parenta378a46985698bf2576b2990e7faf21f62dd176a (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;