diff options
author | Bodo Möller <bodo@openssl.org> | 2002-02-14 11:23:20 +0100 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-02-14 11:23:20 +0100 |
commit | d8309efc72ea30da49800233896fef4e43c51ed5 (patch) | |
tree | 2cdbee3b8ec37e335b4454efd81ae952f9313ae6 /crypto | |
parent | Fix warnings. (diff) | |
download | openssl-d8309efc72ea30da49800233896fef4e43c51ed5.tar.xz openssl-d8309efc72ea30da49800233896fef4e43c51ed5.zip |
EC_GROUP_get_group_by_name() is now called EC_GROUP_new_by_name()
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/ecdsa/ecdsatest.c | 14 | ||||
-rw-r--r-- | crypto/ecdsa/ecs_asn1.c | 2 |
2 files changed, 8 insertions, 8 deletions
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; i<ECDSA_NIST_TESTS; i++) @@ -558,7 +558,7 @@ int main(void) BIO_printf(bio_err, "Testing sign & verify with NIST Prime-Curve P-224 : \n"); ECDSA_free(ecdsa); if ((ecdsa = ECDSA_new()) == NULL) goto err; - if ((ecdsa->group = 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; i<ECDSA_NIST_TESTS; i++) @@ -584,7 +584,7 @@ int main(void) BIO_printf(bio_err, "Testing sign & verify with NIST Prime-Curve P-256 : \n"); ECDSA_free(ecdsa); if ((ecdsa = ECDSA_new()) == NULL) goto err; - if ((ecdsa->group = 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; i<ECDSA_NIST_TESTS; i++) @@ -610,7 +610,7 @@ int main(void) BIO_printf(bio_err, "Testing sign & verify with NIST Prime-Curve P-384 : \n"); ECDSA_free(ecdsa); if ((ecdsa = ECDSA_new()) == NULL) goto err; - if ((ecdsa->group = 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; i<ECDSA_NIST_TESTS; i++) @@ -636,7 +636,7 @@ int main(void) BIO_printf(bio_err, "Testing sign & verify with NIST Prime-Curve P-521 : \n"); ECDSA_free(ecdsa); if ((ecdsa = ECDSA_new()) == NULL) goto err; - if ((ecdsa->group = 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; i<ECDSA_NIST_TESTS; i++) diff --git a/crypto/ecdsa/ecs_asn1.c b/crypto/ecdsa/ecs_asn1.c index 3a5baf013b..fe2ed62d11 100644 --- a/crypto/ecdsa/ecs_asn1.c +++ b/crypto/ecdsa/ecs_asn1.c @@ -502,7 +502,7 @@ ECDSA *ECDSA_ecparameters2ecdsa(const EC_PARAMETERS *params, ECDSA *ecdsa) EC_GROUP_free(ret->group); 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); |