aboutsummaryrefslogtreecommitdiff
path: root/test/ssltest.c
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2015-12-04 22:25:11 +0100
committerKurt Roeckx <kurt@roeckx.be>2015-12-04 22:25:11 +0100
commit6977e8ee4a718a76351ba5275a9f0be4e530eab5 (patch)
tree84cd56401bf1e8c72e12187709d4fdd5ea674677 /test/ssltest.c
parent6f78b9e824c053d062188578635c575017b587c5 (diff)
downloadopenssl-6977e8ee4a718a76351ba5275a9f0be4e530eab5.zip
openssl-6977e8ee4a718a76351ba5275a9f0be4e530eab5.tar.gz
openssl-6977e8ee4a718a76351ba5275a9f0be4e530eab5.tar.bz2
Make SSL_{CTX}_set_tmp_ecdh() call SSL_{CTX_}set1_curves()
SSL_{CTX}_set_tmp_ecdh() allows to set 1 EC curve and then tries to use it. On the other hand SSL_{CTX_}set1_curves() allows you to set a list of curves, but only when SSL_{CTX_}set_ecdh_auto() was called to turn it on. Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
Diffstat (limited to 'test/ssltest.c')
-rw-r--r--test/ssltest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ssltest.c b/test/ssltest.c
index 68d48d1..6455af3 100644
--- a/test/ssltest.c
+++ b/test/ssltest.c
@@ -1475,6 +1475,7 @@ int main(int argc, char *argv[])
goto end;
}
+ SSL_CTX_set_ecdh_auto(s_ctx, 1);
SSL_CTX_set_tmp_ecdh(s_ctx, ecdh);
SSL_CTX_set_options(s_ctx, SSL_OP_SINGLE_ECDH_USE);
EC_KEY_free(ecdh);