aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ec
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-10-28 13:19:08 +0000
committerBodo Möller <bodo@openssl.org>2002-10-28 13:19:08 +0000
commitf72ed6153b2b54c2129354187a2f50193b68f0a1 (patch)
treecd4dd54bbe4bf0d0ebabad770ff8c30d3d54e6f6 /crypto/ec
parentd652a0957f80c09bd9fecaffe2c19be8dbe5f88b (diff)
downloadopenssl-f72ed6153b2b54c2129354187a2f50193b68f0a1.tar.gz
remove superfluous code
Submitted by: Nils Larsch
Diffstat (limited to 'crypto/ec')
-rw-r--r--crypto/ec/ec2_smpl.c16
-rw-r--r--crypto/ec/ec_lcl.h5
2 files changed, 7 insertions, 14 deletions
diff --git a/crypto/ec/ec2_smpl.c b/crypto/ec/ec2_smpl.c
index b218c5639a..2f2e7b7f1b 100644
--- a/crypto/ec/ec2_smpl.c
+++ b/crypto/ec/ec2_smpl.c
@@ -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;
diff --git a/crypto/ec/ec_lcl.h b/crypto/ec/ec_lcl.h
index ae67ccfdc2..247c985a23 100644
--- a/crypto/ec/ec_lcl.h
+++ b/crypto/ec/ec_lcl.h
@@ -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. */