remove superfluous code

Submitted by: Nils Larsch
This commit is contained in:
Bodo Möller 2002-10-28 13:19:08 +00:00
parent d652a0957f
commit f72ed6153b
2 changed files with 7 additions and 14 deletions

View File

@ -234,16 +234,14 @@ int ec_GF2m_simple_group_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a,
if (!BN_copy(p, &group->field)) return 0;
}
if (a != NULL || b != NULL)
if (a != NULL)
{
if (a != NULL)
{
if (!BN_copy(a, &group->a)) goto err;
}
if (b != NULL)
{
if (!BN_copy(b, &group->b)) goto err;
}
if (!BN_copy(a, &group->a)) goto err;
}
if (b != NULL)
{
if (!BN_copy(b, &group->b)) goto err;
}
ret = 1;

View File

@ -89,11 +89,6 @@
#include <openssl/ec.h>
/* internal function: ec_group_index2nid() returns the NID of curve
* with the given index i from the internal curve list */
int ec_group_index2nid(int i);
/* Structure details are not part of the exported interface,
* so all this may change in future versions. */