diff options
author | Nils Larsch <nils@openssl.org> | 2005-05-10 11:37:47 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2005-05-10 11:37:47 +0000 |
commit | 8b15c740180725e3e1e71ff619151840cdec46a5 (patch) | |
tree | ea4e30c81576aa0b35af6cfe5f21908ca514c2b3 /ssl | |
parent | 3afa6cf866257e240bf6b62dfb714bd5669385c7 (diff) |
give EC_GROUP_new_by_nid a more meanigful name:
EC_GROUP_new_by_nid -> EC_GROUP_new_by_curve_name
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); |