Skip to content

Commit

Permalink
Constify ECDSA_METHOD_new.
Browse files Browse the repository at this point in the history
PR#3920.

Reviewed-by: Rich Salz <rsalz@openssl.org>
  • Loading branch information
snhenson committed Sep 12, 2015
1 parent bc2a15c commit aabd492
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crypto/ecdsa/ecs_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ void *ECDSA_get_ex_data(EC_KEY *d, int idx)
return (CRYPTO_get_ex_data(&ecdsa->ex_data, idx));
}

ECDSA_METHOD *ECDSA_METHOD_new(ECDSA_METHOD *ecdsa_meth)
ECDSA_METHOD *ECDSA_METHOD_new(const ECDSA_METHOD *ecdsa_meth)
{
ECDSA_METHOD *ret;

Expand Down
2 changes: 1 addition & 1 deletion include/openssl/ecdsa.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ void *ECDSA_get_ex_data(EC_KEY *d, int idx);
* \return pointer to a ECDSA_METHOD structure or NULL if an error occurred
*/

ECDSA_METHOD *ECDSA_METHOD_new(ECDSA_METHOD *ecdsa_method);
ECDSA_METHOD *ECDSA_METHOD_new(const ECDSA_METHOD *ecdsa_method);

/** frees a ECDSA_METHOD structure
* \param ecdsa_method pointer to the ECDSA_METHOD structure
Expand Down

0 comments on commit aabd492

Please sign in to comment.