From d8309efc72ea30da49800233896fef4e43c51ed5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Thu, 14 Feb 2002 10:23:20 +0000 Subject: [PATCH] EC_GROUP_get_group_by_name() is now called EC_GROUP_new_by_name() --- apps/ecdsaparam.c | 2 +- crypto/ecdsa/ecdsatest.c | 14 +++++++------- crypto/ecdsa/ecs_asn1.c | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/ecdsaparam.c b/apps/ecdsaparam.c index ebb0d1ecb3..d94ee3a649 100644 --- a/apps/ecdsaparam.c +++ b/apps/ecdsaparam.c @@ -348,7 +348,7 @@ bad: { if ((ecdsa = ECDSA_new()) == NULL) goto end; - ecdsa->group = EC_GROUP_get_group_by_name(curve_type); + ecdsa->group = EC_GROUP_new_by_name(curve_type); if (named_curve) ECDSA_set_parameter_flags(ecdsa, ECDSA_FLAG_NAMED_CURVE); } diff --git a/crypto/ecdsa/ecdsatest.c b/crypto/ecdsa/ecdsatest.c index 1f2cef0331..339f654516 100644 --- a/crypto/ecdsa/ecdsatest.c +++ b/crypto/ecdsa/ecdsatest.c @@ -119,7 +119,7 @@ int set_p192_param(ECDSA *ecdsa) if ((ctx = BN_CTX_new()) == NULL) goto err; clear_ecdsa(ecdsa); - if ((ecdsa->group = EC_GROUP_get_group_by_name(EC_GROUP_X9_62_PRIME_192V1)) == NULL) + if ((ecdsa->group = EC_GROUP_new_by_name(EC_GROUP_X9_62_PRIME_192V1)) == NULL) { BIO_printf(bio_err,"ECDSA_SET_GROUP_P_192_V1() failed \n"); goto err; @@ -152,7 +152,7 @@ int set_p239_param(ECDSA *ecdsa) if ((ctx = BN_CTX_new()) == NULL) goto err; clear_ecdsa(ecdsa); - if ((ecdsa->group = EC_GROUP_get_group_by_name(EC_GROUP_X9_62_PRIME_239V1)) == NULL) + if ((ecdsa->group = EC_GROUP_new_by_name(EC_GROUP_X9_62_PRIME_239V1)) == NULL) { BIO_printf(bio_err,"ECDSA_SET_GROUP_P_239_V1() failed \n"); goto err; @@ -532,7 +532,7 @@ int main(void) BIO_printf(bio_err, "\nTesting sign & verify with NIST Prime-Curve P-192 : \n"); ECDSA_free(ecdsa); if ((ecdsa = ECDSA_new()) == NULL) goto err; - if ((ecdsa->group = EC_GROUP_get_group_by_name(EC_GROUP_NIST_PRIME_192)) == NULL) goto err; + if ((ecdsa->group = EC_GROUP_new_by_name(EC_GROUP_NIST_PRIME_192)) == NULL) goto err; if (!ECDSA_generate_key(ecdsa)) goto err; time = clock(); for (i=0; igroup = EC_GROUP_get_group_by_name(EC_GROUP_NIST_PRIME_224)) == NULL) goto err; + if ((ecdsa->group = EC_GROUP_new_by_name(EC_GROUP_NIST_PRIME_224)) == NULL) goto err; if (!ECDSA_generate_key(ecdsa)) goto err; time = clock(); for (i=0; igroup = EC_GROUP_get_group_by_name(EC_GROUP_NIST_PRIME_256)) == NULL) goto err; + if ((ecdsa->group = EC_GROUP_new_by_name(EC_GROUP_NIST_PRIME_256)) == NULL) goto err; if (!ECDSA_generate_key(ecdsa)) goto err; time = clock(); for (i=0; igroup = EC_GROUP_get_group_by_name(EC_GROUP_NIST_PRIME_384)) == NULL) goto err; + if ((ecdsa->group = EC_GROUP_new_by_name(EC_GROUP_NIST_PRIME_384)) == NULL) goto err; if (!ECDSA_generate_key(ecdsa)) goto err; time = clock(); for (i=0; igroup = EC_GROUP_get_group_by_name(EC_GROUP_NIST_PRIME_521)) == NULL) goto err; + if ((ecdsa->group = EC_GROUP_new_by_name(EC_GROUP_NIST_PRIME_521)) == NULL) goto err; if (!ECDSA_generate_key(ecdsa)) goto err; time = clock(); for (i=0; igroup); tmp = OBJ_obj2nid(params->value.named_curve); ret->parameter_flags |= ECDSA_FLAG_NAMED_CURVE; - if ((ret->group = EC_GROUP_get_group_by_name(tmp)) == NULL) + if ((ret->group = EC_GROUP_new_by_name(tmp)) == NULL) { ECDSAerr(ECDSA_F_ECDSA_GET_ECDSA, ECDSA_R_EC_GROUP_NID2CURVE_FAILURE); ECDSA_free(ret); -- 2.25.1