diff options
author | Pauli <ppzgs1@gmail.com> | 2021-03-02 09:01:14 +1000 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-03-12 08:27:11 +1000 |
commit | 10ffdda4209371dcd839d78081e1a65d2a8b67b0 (patch) | |
tree | d4ee2ddd142c38917b5f0a3555c01afa1d4e3419 /test | |
parent | 3d8905f85945d899192b113ae495e99894687c4f (diff) |
test: add params argument to key manager's gen_init call
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14383)
Diffstat (limited to 'test')
-rw-r--r-- | test/tls-provider.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/tls-provider.c b/test/tls-provider.c index 03e2ae1f0e..20598041e0 100644 --- a/test/tls-provider.c +++ b/test/tls-provider.c @@ -317,7 +317,7 @@ static int xor_encapsulate(void *vpxorctx, } /* 1. Generate keypair */ - genctx = xor_gen_init(pxorctx->provctx, OSSL_KEYMGMT_SELECT_KEYPAIR); + genctx = xor_gen_init(pxorctx->provctx, OSSL_KEYMGMT_SELECT_KEYPAIR, NULL); if (genctx == NULL) goto end; ourkey = xor_gen(genctx, NULL, NULL); @@ -537,7 +537,8 @@ struct xor_gen_ctx { OSSL_LIB_CTX *libctx; }; -static void *xor_gen_init(void *provctx, int selection) +static void *xor_gen_init(void *provctx, int selection, + const OSSL_PARAM params[]) { struct xor_gen_ctx *gctx = NULL; @@ -551,6 +552,10 @@ static void *xor_gen_init(void *provctx, int selection) /* Our provctx is really just an OSSL_LIB_CTX */ gctx->libctx = (OSSL_LIB_CTX *)provctx; + if (!xor_gen_set_params(gctx, params)) { + OPENSSL_free(gctx); + return NULL; + } return gctx; } |