diff options
author | Richard Levitte <levitte@openssl.org> | 2002-02-20 14:49:17 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-02-20 14:49:17 +0100 |
commit | 1fc1bd382bd08a140a0074ca41b2c9b74e6fab34 (patch) | |
tree | 86e0c02b1e9228d3410c7567489de9a52fe78241 /crypto/ecdsa | |
parent | Update the status on 64-bit thingy. (diff) | |
download | openssl-1fc1bd382bd08a140a0074ca41b2c9b74e6fab34.tar.xz openssl-1fc1bd382bd08a140a0074ca41b2c9b74e6fab34.zip |
Instead of casting a lvalue, let's constify meth.
Diffstat (limited to 'crypto/ecdsa')
-rw-r--r-- | crypto/ecdsa/ecs_asn1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ecdsa/ecs_asn1.c b/crypto/ecdsa/ecs_asn1.c index 886cd01db2..6fa0b3fb7f 100644 --- a/crypto/ecdsa/ecs_asn1.c +++ b/crypto/ecdsa/ecs_asn1.c @@ -355,7 +355,7 @@ ECDSA *ECDSA_x9_62parameters2ecdsa(const X9_62_EC_PARAMETERS *params, EC { int ok=0, reason=ERR_R_EC_LIB, tmp; ECDSA *ret=NULL; - EC_METHOD *meth=NULL; + const EC_METHOD *meth=NULL; BIGNUM *tmp_1=NULL, *tmp_2=NULL, *tmp_3=NULL; EC_POINT *point=NULL; @@ -398,7 +398,7 @@ ECDSA *ECDSA_x9_62parameters2ecdsa(const X9_62_EC_PARAMETERS *params, EC else if (tmp == NID_X9_62_prime_field) { /* TODO : optimal method for the curve */ - (const EC_METHOD *)meth = EC_GFp_mont_method(); + meth = EC_GFp_mont_method(); if ((ret->group = EC_GROUP_new(meth)) == NULL) goto err; if (params->fieldID->parameters->type != V_ASN1_INTEGER) OPENSSL_ECDSA_ABORT(ECDSA_R_UNEXPECTED_ASN1_TYPE) |