From af6171b35aa4d066f6834c4fb917372b81d92489 Mon Sep 17 00:00:00 2001 From: Pauli Date: Tue, 2 Mar 2021 22:41:24 +1000 Subject: test: support params arguments to init functions Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/14383) --- test/tls-provider.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/tls-provider.c') diff --git a/test/tls-provider.c b/test/tls-provider.c index 20598041e0..1085273a32 100644 --- a/test/tls-provider.c +++ b/test/tls-provider.c @@ -202,7 +202,8 @@ static void *xor_newctx(void *provctx) return pxorctx; } -static int xor_init(void *vpxorctx, void *vkey) +static int xor_init(void *vpxorctx, void *vkey, + ossl_unused const OSSL_PARAM params[]) { PROV_XOR_CTX *pxorctx = (PROV_XOR_CTX *)vpxorctx; @@ -331,7 +332,7 @@ static int xor_encapsulate(void *vpxorctx, /* 3. Derive ss via KEX */ derivectx = xor_newctx(pxorctx->provctx); if (derivectx == NULL - || !xor_init(derivectx, ourkey) + || !xor_init(derivectx, ourkey, NULL) || !xor_set_peer(derivectx, pxorctx->key) || !xor_derive(derivectx, ss, sslen, XOR_KEY_SIZE)) goto end; @@ -378,7 +379,7 @@ static int xor_decapsulate(void *vpxorctx, /* Derive ss via KEX */ derivectx = xor_newctx(pxorctx->provctx); if (derivectx == NULL - || !xor_init(derivectx, pxorctx->key) + || !xor_init(derivectx, pxorctx->key, NULL) || !xor_set_peer(derivectx, peerkey) || !xor_derive(derivectx, ss, sslen, XOR_KEY_SIZE)) goto end; -- cgit v1.2.1