summaryrefslogtreecommitdiffstats
path: root/crypto/ec/ecp_nist.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-11-04 13:17:22 +0000
committerBodo Möller <bodo@openssl.org>2002-11-04 13:17:22 +0000
commitb53e44e57259b2b015c54de8ecbcf4e06be23298 (patch)
tree4d06528db2e5e7d8ad1680fc59159a4c689c7b3c /crypto/ec/ecp_nist.c
parente5f4d8279dccad0f6dde324f52333291739dcca3 (diff)
implement and use new macros BN_get_sign(), BN_set_sign()
Submitted by: Nils Larsch
Diffstat (limited to 'crypto/ec/ecp_nist.c')
-rw-r--r--crypto/ec/ecp_nist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/ecp_nist.c b/crypto/ec/ecp_nist.c
index 98401fe4bc..156bc54a07 100644
--- a/crypto/ec/ecp_nist.c
+++ b/crypto/ec/ecp_nist.c
@@ -191,7 +191,7 @@ int ec_GFp_nist_group_set_curve(EC_GROUP *group, const BIGNUM *p,
/* group->field */
if (!BN_copy(&group->field, p)) goto err;
- group->field.neg = 0;
+ BN_set_sign(&group->field, 0);
/* group->a */
if (!group->field_mod_func(&group->a, a, p, ctx)) goto err;