Fix const correctness of EC_KEY_METHOD_get_*
authorJohannes Bauer <joe@johannes-bauer.com>
Fri, 21 Jul 2017 17:58:18 +0000 (19:58 +0200)
committerKurt Roeckx <kurt@roeckx.be>
Sun, 23 Jul 2017 09:36:40 +0000 (11:36 +0200)
commit0e5be9faa3958cce5eb776c65fcf31b634590ea8
tree96c11d716083ee96351c3391f2fcfdb0c423908f
parent42aebbd557c9deb5746ef9e69241d2de8913fdd5
Fix const correctness of EC_KEY_METHOD_get_*

Changes the EC_KEY_METHOD_get_* family to not need a EC_KEY_METHOD* as
its first parameter, but a const EC_KEY_METHOD*, which is entirely
sufficient.

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
GH: #3985
(cherry picked from commit 4e9b720e90ec154c9708139e96ec0ff8e2796c82)
crypto/ec/ec_kmeth.c
include/openssl/ec.h