summaryrefslogtreecommitdiffstats
path: root/test/tls-provider.c
diff options
context:
space:
mode:
authorNicola Tuveri <nic.tuv@gmail.com>2020-10-21 00:02:04 +0200
committerPauli <paul.dale@oracle.com>2020-10-22 04:27:39 +0200
commit3d914185b7830a5530b31d3430c9cc16835aeb02 (patch)
tree0f3a856dcad8ffbb3e0567f326b274d137000eff /test/tls-provider.c
parentFix aarch64 static linking into shared libraries (see issue #10842 and pull r... (diff)
downloadopenssl-3d914185b7830a5530b31d3430c9cc16835aeb02.tar.xz
openssl-3d914185b7830a5530b31d3430c9cc16835aeb02.zip
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/tls-provider.c')
-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) {