Lines Matching refs:uctx
1635 struct xfrm_user_sec_ctx *uctx;
1636 int size = sizeof(*uctx) + security->ctx_len;
1639 uctx = kmalloc(size, GFP_KERNEL);
1640 if (!uctx)
1643 uctx->exttype = XFRMA_SEC_CTX;
1644 uctx->len = size;
1645 uctx->ctx_doi = security->ctx_doi;
1646 uctx->ctx_alg = security->ctx_alg;
1647 uctx->ctx_len = security->ctx_len;
1648 memcpy(uctx + 1, security->ctx_str, security->ctx_len);
1649 err = security_xfrm_state_alloc(x, uctx);
1650 kfree(uctx);