Commit 8b15c740 authored by Nils Larsch's avatar Nils Larsch
Browse files

give EC_GROUP_new_by_nid a more meanigful name:

EC_GROUP_new_by_nid -> EC_GROUP_new_by_curve_name
parent 3afa6cf8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -774,14 +774,14 @@
  *) Include some named elliptic curves, and add OIDs from X9.62,
     SECG, and WAP/WTLS.  Each curve can be obtained from the new
     function
          EC_GROUP_new_by_nid(),
          EC_GROUP_new_by_curve_name(),
     and the list of available named curves can be obtained with
          EC_get_builtin_curves().
     Also add a 'curve_name' member to EC_GROUP objects, which can be
     accessed via
         EC_GROUP_set_curve_name()
         EC_GROUP_get_curve_name()
     [Nils Larsch <nla@trustcenter.de, Bodo Moeller]
     [Nils Larsch <larsch@trustcenter.de, Bodo Moeller]
 
  *) Remove a few calls to bn_wexpand() in BN_sqr() (the one in there
     was actually never needed) and in BN_mul().  The removal in BN_mul()
+1 −1
Original line number Diff line number Diff line
@@ -411,7 +411,7 @@ bad:
			goto end;
			}

		group = EC_GROUP_new_by_nid(nid);
		group = EC_GROUP_new_by_curve_name(nid);
		if (group == NULL)
			{
			BIO_printf(bio_err, "unable to create curve (%s)\n", 
+2 −2
Original line number Diff line number Diff line
@@ -999,7 +999,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", 
@@ -1015,7 +1015,7 @@ bad:
		else
			{
			BIO_printf(bio_s_out,"Using default temp ECDH parameters\n");
			ecdh->group=EC_GROUP_new_by_nid(NID_sect163r2);
			ecdh->group=EC_GROUP_new_by_curve_name(NID_sect163r2);
			if (ecdh->group == NULL) 
				{
				BIO_printf(bio_err, "unable to create curve (sect163r2)\n");
+2 −2
Original line number Diff line number Diff line
@@ -2049,7 +2049,7 @@ int MAIN(int argc, char **argv)
			} 
		else 
			{
			ecdsa[j]->group = EC_GROUP_new_by_nid(test_curves[j]);
			ecdsa[j]->group = EC_GROUP_new_by_curve_name(test_curves[j]);
			/* Could not obtain group information */
			if (ecdsa[j]->group == NULL) 
				{
@@ -2168,7 +2168,7 @@ int MAIN(int argc, char **argv)
			}
		else
			{
			ecdh_a[j]->group = EC_GROUP_new_by_nid(test_curves[j]);
			ecdh_a[j]->group = EC_GROUP_new_by_curve_name(test_curves[j]);
			if (ecdh_a[j]->group == NULL)
				{
				BIO_printf(bio_err,"ECDH failure.\n");
+1 −1
Original line number Diff line number Diff line
@@ -338,7 +338,7 @@ EVP_PKEY *X509_PUBKEY_get(X509_PUBKEY *key)
			eckey = ret->pkey.eckey;
			if (eckey->group)
				EC_GROUP_free(eckey->group);
			if ((eckey->group = EC_GROUP_new_by_nid(
			if ((eckey->group = EC_GROUP_new_by_curve_name(
                             OBJ_obj2nid(a->parameter->value.object))) == NULL)
				goto err;
			EC_GROUP_set_asn1_flag(eckey->group, 
Loading