mirror of
https://github.com/openssl/openssl.git
synced 2024-11-24 02:23:51 +08:00
remove superfluous code
Submitted by: Nils Larsch
This commit is contained in:
parent
d652a0957f
commit
f72ed6153b
@ -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;
|
||||
|
@ -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. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user