diff options
Diffstat (limited to 'ssl/ssltest.c')
-rw-r--r-- | ssl/ssltest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 9e565fb846..d56f642869 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -734,7 +734,7 @@ bad: goto end; } - ecdh->group = EC_GROUP_new_by_nid(nid); + ecdh->group = EC_GROUP_new_by_curve_name(nid); if (ecdh->group == NULL) { BIO_printf(bio_err, "unable to create curve (%s)\n", named_curve); @@ -744,7 +744,7 @@ bad: } if (ecdh->group == NULL) - ecdh->group=EC_GROUP_new_by_nid(NID_sect163r2); + ecdh->group=EC_GROUP_new_by_curve_name(NID_sect163r2); SSL_CTX_set_tmp_ecdh(s_ctx, ecdh); SSL_CTX_set_options(s_ctx, SSL_OP_SINGLE_ECDH_USE); |