summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNicola Tuveri <nic.tuv@gmail.com>2020-10-21 01:02:04 +0300
committerPauli <paul.dale@oracle.com>2020-10-22 12:27:39 +1000
commit3d914185b7830a5530b31d3430c9cc16835aeb02 (patch)
tree0f3a856dcad8ffbb3e0567f326b274d137000eff /test
parenta135948ddaa4deff369cfaeb768efd603649f4de (diff)
Constify OSSL_FUNC_keymgmt_has()
The keydata argument of OSSL_FUNC_keymgmt_has() should be read-only. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13200)
Diffstat (limited to 'test')
-rw-r--r--test/tls-provider.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tls-provider.c b/test/tls-provider.c
index d3188d0c20..184b926881 100644
--- a/test/tls-provider.c
+++ b/test/tls-provider.c
@@ -418,9 +418,9 @@ static void xor_freedata(void *keydata)
OPENSSL_free(keydata);
}
-static int xor_has(void *vkey, int selection)
+static int xor_has(const void *vkey, int selection)
{
- XORKEY *key = vkey;
+ const XORKEY *key = vkey;
int ok = 0;
if (key != NULL) {