if (!BIO_indent(bp, off, 128))
goto err;
- nid = EC_GROUP_get_nid(x);
+ nid = EC_GROUP_get_curve_name(x);
if (nid == 0)
goto err;
}
if (EC_GROUP_get_asn1_flag(eckey->group)
- && (nid = EC_GROUP_get_nid(eckey->group)))
+ && (nid = EC_GROUP_get_curve_name(eckey->group)))
{
/* just set the OID */
a->parameter->type = V_ASN1_OBJECT;
int EC_GROUP_get_order(const EC_GROUP *, BIGNUM *order, BN_CTX *);
int EC_GROUP_get_cofactor(const EC_GROUP *, BIGNUM *cofactor, BN_CTX *);
-void EC_GROUP_set_nid(EC_GROUP *, int); /* curve name */
-int EC_GROUP_get_nid(const EC_GROUP *);
+void EC_GROUP_set_curve_name(EC_GROUP *, int nid); /* curve name */
+int EC_GROUP_get_curve_name(const EC_GROUP *);
void EC_GROUP_set_asn1_flag(EC_GROUP *, int flag);
int EC_GROUP_get_asn1_flag(const EC_GROUP *);
/* use the asn1 OID to describe the
* the elliptic curve parameters
*/
- tmp = EC_GROUP_get_nid(group);
+ tmp = EC_GROUP_get_curve_name(group);
if (tmp)
{
ret->type = 0;
return NULL;
}
- EC_GROUP_set_nid(ret, nid);
+ EC_GROUP_set_curve_name(ret, nid);
return ret;
}
}
-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;
}
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)
}
if (EC_GROUP_get_asn1_flag(eckey->group)
- && (nid = EC_GROUP_get_nid(eckey->group)))
+ && (nid = EC_GROUP_get_curve_name(eckey->group)))
{
/* we have a 'named curve' => just set the OID */
p8->pkeyalg->parameter->type = V_ASN1_OBJECT;
* supported named curves, curve_id is non-zero.
*/
if ((curve_id =
- nid2curve_id(EC_GROUP_get_nid(ecdh->group)))
+ nid2curve_id(EC_GROUP_get_curve_name(ecdh->group)))
== 0)
{
SSLerr(SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE,SSL_R_UNSUPPORTED_ELLIPTIC_CURVE);
EVP_sha512 3368 EXIST::FUNCTION:SHA,SHA512
X509_VERIFY_PARAM_set1_name 3369 EXIST::FUNCTION:
X509_VERIFY_PARAM_set_purpose 3370 EXIST::FUNCTION:
-EC_GROUP_get_nid 3371 EXIST::FUNCTION:EC
+EC_GROUP_get_curve_name 3371 EXIST::FUNCTION:EC
STORE_get_number 3372 EXIST::FUNCTION:
ECDSA_sign_setup 3373 EXIST::FUNCTION:ECDSA
BN_GF2m_mod_solve_quad_arr 3374 EXIST::FUNCTION:
PEM_write_bio_ECPKParameters 3410 EXIST::FUNCTION:EC
STORE_method_set_ctrl_function 3411 EXIST::FUNCTION:
STORE_list_public_key_end 3412 EXIST::FUNCTION:
-EC_GROUP_set_nid 3413 EXIST::FUNCTION:EC
+EC_GROUP_set_curve_name 3413 EXIST::FUNCTION:EC
STORE_get_arbitrary 3414 EXIST::FUNCTION:
STORE_store_crl 3415 EXIST::FUNCTION:
X509_policy_node_get0_policy 3416 EXIST::FUNCTION: