Searched refs:spctx (Results 1 – 3 of 3) sorted by relevance
58 struct sp_ctx *spctx; in sp_connect() local69 spctx = malloc(sizeof(*spctx)); in sp_connect()70 if (spctx == NULL) in sp_connect()75 free(spctx); in sp_connect()81 *ctxp = spctx; in sp_connect()89 struct sp_ctx *spctx; in sp_wrap() local93 spctx = malloc(sizeof(*spctx)); in sp_wrap()94 if (spctx == NULL) in sp_wrap()107 *ctxp = spctx; in sp_wrap()245 spctx->sp_magic = 0; in sp_close()[all …]
60 struct sp_ctx *spctx; in sp_client() local68 spctx = malloc(sizeof(*spctx)); in sp_client()69 if (spctx == NULL) in sp_client()74 free(spctx); in sp_client()80 *ctxp = spctx; in sp_client()104 spctx->sp_fd[1] = -1; in sp_send()143 spctx->sp_fd[0] = -1; in sp_recv()146 fd = spctx->sp_fd[1]; in sp_recv()150 fd = spctx->sp_fd[0]; in sp_recv()218 spctx->sp_magic = 0; in sp_close()[all …]
231 struct padlock_sha_ctx *spctx = sctx, *dpctx = dctx; in padlock_copy_ctx() local233 dpctx->psc_offset = spctx->psc_offset; in padlock_copy_ctx()234 dpctx->psc_size = spctx->psc_size; in padlock_copy_ctx()236 bcopy(spctx->psc_buf, dpctx->psc_buf, dpctx->psc_size); in padlock_copy_ctx()