diff options
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/s3_clnt.c | 2 | ||||
-rw-r--r-- | ssl/ssltest.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index fc376cb04d..744748dd5b 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -1214,7 +1214,7 @@ int ssl3_get_key_exchange(SSL *s) goto f_err; } - if (!(ecdh->group=EC_GROUP_new_by_nid(curve_nid))) + if (!(ecdh->group=EC_GROUP_new_by_curve_name(curve_nid))) { SSLerr(SSL_F_SSL3_GET_KEY_EXCHANGE,ERR_R_EC_LIB); goto err; 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); |