aboutsummaryrefslogtreecommitdiffstats
path: root/module/icp/api
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-12-25 00:26:17 +0100
committerBrian Behlendorf <[email protected]>2022-02-15 16:24:46 -0800
commit7f90cf30437f44377c575cb7f385a1ad8f1282f9 (patch)
tree3f4f64dc95059c41b1ec99fac864d816ba22d6e5 /module/icp/api
parenta288428d83d926bc5d95c48eb06388f31763ba62 (diff)
module: icp: remove unused struct crypto_ctx::cc_{session,flags,opstate}
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #12901
Diffstat (limited to 'module/icp/api')
-rw-r--r--module/icp/api/kcf_mac.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/icp/api/kcf_mac.c b/module/icp/api/kcf_mac.c
index cf805ee1c..369ba55ce 100644
--- a/module/icp/api/kcf_mac.c
+++ b/module/icp/api/kcf_mac.c
@@ -137,7 +137,6 @@ retry:
* Arguments:
* pd: pointer to the descriptor of the provider to use for this
* operation.
- * sid: provider session id.
* mech: crypto_mechanism_t pointer.
* mech_type is a valid value previously returned by
* crypto_mech2id();
@@ -168,7 +167,7 @@ retry:
* See comment in the beginning of the file.
*/
static int
-crypto_mac_init_prov(crypto_provider_t provider, crypto_session_id_t sid,
+crypto_mac_init_prov(crypto_provider_t provider,
crypto_mechanism_t *mech, crypto_key_t *key, crypto_spi_ctx_template_t tmpl,
crypto_context_t *ctxp, crypto_call_req_t *crq)
{
@@ -180,7 +179,7 @@ crypto_mac_init_prov(crypto_provider_t provider, crypto_session_id_t sid,
ASSERT(KCF_PROV_REFHELD(pd));
/* Allocate and initialize the canonical context */
- if ((ctx = kcf_new_ctx(crq, real_provider, sid)) == NULL)
+ if ((ctx = kcf_new_ctx(crq, real_provider)) == NULL)
return (CRYPTO_HOST_MEMORY);
crypto_mechanism_t lmech = *mech;
@@ -235,7 +234,7 @@ retry:
if (((ctx_tmpl = (kcf_ctx_template_t *)tmpl) != NULL))
spi_ctx_tmpl = ctx_tmpl->ct_prov_tmpl;
- error = crypto_mac_init_prov(pd, pd->pd_sid, mech, key,
+ error = crypto_mac_init_prov(pd, mech, key,
spi_ctx_tmpl, ctxp, crq);
if (error != CRYPTO_SUCCESS && error != CRYPTO_QUEUED &&
IS_RECOVERABLE(error)) {