diff options
author | Nicola Tuveri <nic.tuv@gmail.com> | 2020-10-21 01:38:44 +0300 |
---|---|---|
committer | Nicola Tuveri <nic.tuv@gmail.com> | 2020-10-23 17:54:40 +0300 |
commit | d1fb6b481b1d70932a1435f83eae10cc68edbe36 (patch) | |
tree | 1253a9c0cc7cccf93126fc518844e254b8cd8ed5 /providers/implementations/keymgmt/rsa_kmgmt.c | |
parent | 85209c07459b1c6007e0fc550f40c05deec78531 (diff) |
Constify OSSL_FUNC_keymgmt_validate()
The keydata argument of OSSL_FUNC_keymgmt_validate() should be read-only.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13201)
Diffstat (limited to 'providers/implementations/keymgmt/rsa_kmgmt.c')
-rw-r--r-- | providers/implementations/keymgmt/rsa_kmgmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/providers/implementations/keymgmt/rsa_kmgmt.c b/providers/implementations/keymgmt/rsa_kmgmt.c index a37288a8b1..feee131328 100644 --- a/providers/implementations/keymgmt/rsa_kmgmt.c +++ b/providers/implementations/keymgmt/rsa_kmgmt.c @@ -357,9 +357,9 @@ static const OSSL_PARAM *rsa_gettable_params(void *provctx) return rsa_params; } -static int rsa_validate(void *keydata, int selection) +static int rsa_validate(const void *keydata, int selection) { - RSA *rsa = keydata; + const RSA *rsa = keydata; int ok = 0; if (!ossl_prov_is_running()) |