diff options
author | Nils Larsch <nils@openssl.org> | 2005-05-08 22:09:12 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2005-05-08 22:09:12 +0000 |
commit | 7dc17a6cf015b175c78f3c459498b05a0d6b2955 (patch) | |
tree | e94ed4ec9819c27c5af4703dd83addf700c7fd88 /crypto/ec/ec_lib.c | |
parent | b6223d2f701655d9f98fa1cdcf992967c89b443b (diff) | |
download | openssl-7dc17a6cf015b175c78f3c459498b05a0d6b2955.zip openssl-7dc17a6cf015b175c78f3c459498b05a0d6b2955.tar.gz openssl-7dc17a6cf015b175c78f3c459498b05a0d6b2955.tar.bz2 |
give EC_GROUP_*_nid functions a more meaningful name
EC_GROUP_get_nid -> EC_GROUP_get_curve_name
EC_GROUP_set_nid -> EC_GROUP_set_curve_name
Diffstat (limited to 'crypto/ec/ec_lib.c')
-rw-r--r-- | crypto/ec/ec_lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c index 98c2edc..ae9ee08 100644 --- a/crypto/ec/ec_lib.c +++ b/crypto/ec/ec_lib.c @@ -334,13 +334,13 @@ int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx) } -void EC_GROUP_set_nid(EC_GROUP *group, int nid) +void EC_GROUP_set_curve_name(EC_GROUP *group, int nid) { group->curve_name = nid; } -int EC_GROUP_get_nid(const EC_GROUP *group) +int EC_GROUP_get_curve_name(const EC_GROUP *group) { return group->curve_name; } @@ -481,8 +481,8 @@ int EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ctx) EC_METHOD_get_field_type(EC_GROUP_method_of(b))) return 1; /* compare the curve name (if present) */ - if (EC_GROUP_get_nid(a) && EC_GROUP_get_nid(b) && - EC_GROUP_get_nid(a) == EC_GROUP_get_nid(b)) + if (EC_GROUP_get_curve_name(a) && EC_GROUP_get_curve_name(b) && + EC_GROUP_get_curve_name(a) == EC_GROUP_get_curve_name(b)) return 0; if (!ctx) |