提交 f72ed615 编写于 作者: B Bodo Möller

remove superfluous code

Submitted by: Nils Larsch
上级 d652a095
......@@ -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. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册