[EC] Constify internal EC_KEY pointer usage
authorNicola Tuveri <nic.tuv@gmail.com>
Mon, 6 Jan 2020 23:19:13 +0000 (01:19 +0200)
committerNicola Tuveri <nic.tuv@gmail.com>
Tue, 18 Feb 2020 17:11:10 +0000 (19:11 +0200)
commitcd701de96a147260c2290d85af8a0656120a8ff8
treeda961d9a56d36a608f25c9f1747d6d674167552e
parentafa2b389bc0b81a976bf79381ecc553932a090b3
[EC] Constify internal EC_KEY pointer usage

A pair of internal functions related to EC_KEY handling could benefit
from declaring `EC_KEY *` variables as `const`, providing clarity for
callers and readers of the code, in addition to enlisting the compiler
in preventing some mistakes.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10631)
crypto/ec/ec_ameth.c