| /sssd-io/src/util/crypto/nss/ |
| H A D | nss_util.c | 78 static int sss_nss_crypto_ctx_destructor(struct sss_nss_crypto_ctx *cctx) argument 80 if (cctx->ectx) PK11_DestroyContext(cctx->ectx, PR_TRUE); 81 if (cctx->sparam) SECITEM_FreeItem(cctx->sparam, PR_TRUE); 82 if (cctx->slot) PK11_FreeSlot(cctx->slot); 83 if (cctx->keyobj) PK11_FreeSymKey(cctx->keyobj); 154 struct sss_nss_crypto_ctx *cctx; local 220 nss_crypto_init(struct crypto_mech_data *mech_props, enum crypto_mech_op crypto_op, struct sss_nss_crypto_ctx *cctx) argument [all...] |
| H A D | nss_obfuscate.c | 68 struct sss_nss_crypto_ctx *cctx; local 101 ret = nss_ctx_init(tmp_ctx, mech_props, NULL, 1, NULL, 1, &cctx); 107 ret = nss_crypto_init(mech_props, op_encrypt, cctx); 129 sret = PK11_CipherOp(cctx->ectx, cryptotext, &ctlen, ct_maxsize, 139 sret = PK11_DigestFinal(cctx->ectx, cryptotext+ctlen, &digestlen, 176 safealign_memcpy(&obfbuf[p], cctx->key->data, mech_props->keylen, &p); 177 safealign_memcpy(&obfbuf[p], cctx->iv->data, mech_props->bsize, &p); 202 struct sss_nss_crypto_ctx *cctx; local 286 ivbuf, mech_props->bsize, &cctx); 292 ret = nss_crypto_init(mech_props, op_decrypt, cctx); [all...] |
| H A D | nss_nite.c | 45 struct sss_nss_crypto_ctx *cctx; local 96 ret = nss_ctx_init(tmp_ctx, enc, key, keylen, out, ivlen, &cctx); 102 ret = nss_crypto_init(enc, op_encrypt, cctx); 110 sret = PK11_CipherOp(cctx->ectx, out + clen, &tmplen.s, 119 sret = PK11_DigestFinal(cctx->ectx, out + clen, &tmplen.u, outlen - clen); 179 struct sss_nss_crypto_ctx *cctx; local 268 ret = nss_ctx_init(tmp_ctx, enc, key, keylen, ivbuf, ivlen, &cctx); 274 ret = nss_crypto_init(enc, op_decrypt, cctx); 280 sret = PK11_CipherOp(cctx->ectx, out, &outlen, cipherlen, 287 sret = PK11_DigestFinal(cctx [all...] |
| H A D | nss_crypto.h | 66 struct sss_nss_crypto_ctx *cctx);
|
| /sssd-io/src/responder/kcm/ |
| H A D | kcmsrv_cmd.c | 309 static void kcm_reply_error(struct cli_ctx *cctx, argument 325 talloc_free(cctx); 329 TEVENT_FD_WRITEABLE(cctx->cfde); 337 struct cli_ctx *cctx; member in struct:kcm_req_ctx 351 struct cli_ctx *cctx; local 356 cctx = req_ctx->cctx; 358 ret = kcm_output_construct(cctx, &req_ctx->op_io, &req_ctx->repbuf); 362 kcm_reply_error(cctx, ret, &req_ctx->repbuf); 366 TEVENT_FD_WRITEABLE(cctx 375 struct cli_ctx *cctx; local 463 kcm_new_req(struct cli_ctx *cctx, struct kcm_ctx *kctx) argument 488 kcm_recv(struct cli_ctx *cctx) argument 556 kcm_send_data(struct cli_ctx *cctx) argument 590 kcm_send(struct cli_ctx *cctx) argument 618 kcm_connection_setup(struct cli_ctx *cctx) argument [all...] |
| H A D | kcmsrv_pvt.h | 74 int kcm_connection_setup(struct cli_ctx *cctx);
|
| /sssd-io/src/responder/pac/ |
| H A D | pacsrv_cmd.c | 30 static errno_t pac_cmd_done(struct cli_ctx *cctx, int cmd_ret) argument 40 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol); 52 sss_cmd_done(cctx, NULL); 58 struct cli_ctx *cctx; member in struct:pac_req_ctx 76 static errno_t pac_add_pac_user(struct cli_ctx *cctx) argument 86 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol); 90 pr_ctx = talloc_zero(cctx, struct pac_req_ctx); 96 pr_ctx->cctx = cctx; 100 pr_ctx->pac_ctx = talloc_get_type(cctx 170 struct cli_ctx *cctx = pr_ctx->cctx; local 227 struct cli_ctx *cctx = pr_ctx->cctx; local [all...] |
| /sssd-io/src/tests/cmocka/ |
| H A D | common_mock_resp.c | 67 struct cli_ctx *cctx; local 69 cctx = talloc_zero(mem_ctx, struct cli_ctx); 70 if (!cctx) return NULL; 72 cctx->rctx = rctx; 73 cctx->ev = rctx->ev; 74 return cctx;
|
| H A D | test_pam_srv.c | 77 struct cli_ctx *cctx; member in struct:pam_test_ctx 332 pam_test_ctx->cctx = mock_cctx(pam_test_ctx, pam_test_ctx->rctx); 333 assert_non_null(pam_test_ctx->cctx); 334 pam_test_ctx->cctx->ev = pam_test_ctx->tctx->ev; 336 prctx = mock_prctx(pam_test_ctx->cctx); 338 pam_test_ctx->cctx->protocol_ctx = prctx; 518 void __wrap_sss_cmd_done(struct cli_ctx *cctx, void *freectx) argument 526 prctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol); 544 int __wrap_sss_cmd_send_empty(struct cli_ctx *cctx, TALLOC_CTX *freectx) argument 1090 ret = sss_cmd_execute(pam_test_ctx->cctx, SSS_PAM_AUTHENTICAT [all...] |
| H A D | test_nss_srv.c | 51 struct cli_ctx *cctx; member in struct:nss_test_ctx 120 void __wrap_sss_cmd_done(struct cli_ctx *cctx, void *freectx) argument 133 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol); 151 int __wrap_sss_cmd_send_empty(struct cli_ctx *cctx, TALLOC_CTX *freectx) argument 739 ret = sss_cmd_execute(nss_test_ctx->cctx, SSS_NSS_GETPWNAM, 761 ret = sss_cmd_execute(nss_test_ctx->cctx, SSS_NSS_GETPWNAM, 778 ret = sss_cmd_execute(nss_test_ctx->cctx, SSS_NSS_GETPWNAM, 837 ret = sss_cmd_execute(nss_test_ctx->cctx, SSS_NSS_GETPWNAM, 913 ret = sss_cmd_execute(nss_test_ctx->cctx, SSS_NSS_GETPWNAM, 952 nss_test_ctx->cctx [all...] |
| /sssd-io/src/responder/secrets/ |
| H A D | secsrv_cmd.c | 116 struct cli_ctx *cctx; local 120 cctx = secreq->cctx; 140 talloc_free(cctx); 145 TEVENT_FD_WRITEABLE(cctx->cfde); 148 static void sec_cmd_execute(struct cli_ctx *cctx) argument 153 secreq = talloc_get_type(cctx->state_ctx, struct sec_req_ctx); 155 req = sec_http_request_send(secreq, cctx->ev, secreq); 159 talloc_free(cctx); 460 static void sec_send(struct cli_ctx *cctx) argument 513 sec_recv(struct cli_ctx *cctx) argument 601 sec_connection_setup(struct cli_ctx *cctx) argument [all...] |
| H A D | secsrv.h | 57 int sec_connection_setup(struct cli_ctx *cctx);
|
| H A D | providers.c | 41 c_euid = client_euid(secreq->cctx->creds); 64 c_euid = client_euid(secreq->cctx->creds); 102 sctx = talloc_get_type(secreq->cctx->rctx->pvt_ctx, struct sec_ctx); 131 ret = confdb_get_string(secreq->cctx->rctx->cdb, mem_ctx, 139 ret = confdb_get_sub_sections(mem_ctx, secreq->cctx->rctx->cdb, 169 ret = confdb_get_string(secreq->cctx->rctx->cdb, mem_ctx,
|
| H A D | secsrv_private.h | 72 struct cli_ctx *cctx; member in struct:sec_req_ctx
|
| /sssd-io/src/responder/common/ |
| H A D | responder_common.c | 99 static errno_t get_client_cred(struct cli_ctx *cctx) argument 104 cctx->creds = talloc_zero(cctx, struct cli_creds); 105 if (!cctx->creds) return ENOMEM; 110 cctx->creds->ucred.uid = -1; 111 cctx->creds->ucred.gid = -1; 112 cctx->creds->ucred.pid = -1; 114 ret = getsockopt(cctx->cfd, SOL_SOCKET, SO_PEERCRED, &cctx->creds->ucred, 130 cctx 256 client_send(struct cli_ctx *cctx) argument 281 client_cmd_execute(struct cli_ctx *cctx, struct sss_cmd_table *sss_cmds) argument 291 client_recv(struct cli_ctx *cctx) argument 449 cli_ctx_destructor(struct cli_ctx *cctx) argument 479 struct cli_ctx *cctx; local 622 struct cli_ctx *cctx = talloc_get_type(data, struct cli_ctx); local 645 reset_client_idle_timer(struct cli_ctx *cctx) argument 652 setup_client_idle_timer(struct cli_ctx *cctx) argument 963 sss_client_fd_handler(void *ptr, void (*recv_fn) (struct cli_ctx *cctx), void (*send_fn) (struct cli_ctx *cctx), uint16_t flags) argument 969 struct cli_ctx *cctx = talloc_get_type(ptr, struct cli_ctx); local 994 sss_connection_setup(struct cli_ctx *cctx) argument [all...] |
| H A D | responder_cmd.c | 28 int sss_cmd_send_error(struct cli_ctx *cctx, int err) argument 33 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol); 69 int sss_cmd_send_empty(struct cli_ctx *cctx) argument 74 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol); 94 void sss_cmd_done(struct cli_ctx *cctx, void *freectx) argument 98 TEVENT_FD_WRITEABLE(cctx->cfde); 104 int sss_cmd_get_version(struct cli_ctx *cctx) argument 117 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol); 161 sss_cmd_done(cctx, NULL); 165 int sss_cmd_execute(struct cli_ctx *cctx, argument [all...] |
| H A D | responder.h | 185 int (*fn)(struct cli_ctx *cctx); 196 typedef int (*connection_setup_t)(struct cli_ctx *cctx); 198 int sss_connection_setup(struct cli_ctx *cctx); 201 void (*recv_fn) (struct cli_ctx *cctx), 202 void (*send_fn) (struct cli_ctx *cctx), 236 int sss_cmd_send_empty(struct cli_ctx *cctx); 237 int sss_cmd_send_error(struct cli_ctx *cctx, int err); 238 void sss_cmd_done(struct cli_ctx *cctx, void *freectx); 239 int sss_cmd_get_version(struct cli_ctx *cctx); 240 int sss_cmd_execute(struct cli_ctx *cctx, 268 struct cli_ctx *cctx; member in struct:dp_callback_ctx [all...] |
| /sssd-io/src/responder/pam/ |
| H A D | pamsrv_cmd.c | 681 static int pam_forwarder(struct cli_ctx *cctx, int pam_cmd); 708 if (preq->cctx->rctx->sr_conf.scope == 711 } else if (preq->cctx->rctx->sr_conf.scope == 738 preq->cctx->rctx, preq->domain); 771 struct cli_ctx *cctx; local 792 cctx = preq->cctx; 793 pctx = talloc_get_type(preq->cctx->rctx->pvt_ctx, struct pam_ctx); 794 prctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol); 825 ret = check_cert(cctx, cct 1147 pam_forwarder_parse_data(struct cli_ctx *cctx, struct pam_data *pd) argument 1350 pam_forwarder(struct cli_ctx *cctx, int pam_cmd) argument 1476 struct cli_ctx *cctx = preq->cctx; local 1741 struct cli_ctx *cctx = preq->cctx; local 2146 pam_cmd_authenticate(struct cli_ctx *cctx) argument 2151 pam_cmd_setcred(struct cli_ctx *cctx) argument 2156 pam_cmd_acct_mgmt(struct cli_ctx *cctx) argument 2161 pam_cmd_open_session(struct cli_ctx *cctx) argument 2166 pam_cmd_close_session(struct cli_ctx *cctx) argument 2171 pam_cmd_chauthtok(struct cli_ctx *cctx) argument 2176 pam_cmd_chauthtok_prelim(struct cli_ctx *cctx) argument 2181 pam_cmd_preauth(struct cli_ctx *cctx) argument [all...] |
| H A D | pamsrv_dp.c | 121 res = sss_dp_get_domain_conn(preq->cctx->rctx, 150 pdp_req = talloc(preq->cctx->rctx, struct pam_auth_dp_req);
|
| H A D | pamsrv.h | 61 struct cli_ctx *cctx; member in struct:pam_auth_req
|
| H A D | pam_LOCAL_domain.c | 247 lreq->ev = preq->cctx->ev; 290 lreq->preq->cctx->priv == 1) {
|
| /sssd-io/src/util/ |
| H A D | files.c | 540 copy_dir(struct copy_ctx *cctx, 548 copy_entry(struct copy_ctx *cctx, argument 563 src_ent_path = talloc_asprintf(cctx, "%s/%s", src_dir_path, ent_name); 564 dest_ent_path = talloc_asprintf(cctx, "%s/%s", dest_dir_path, ent_name); 594 dest_ent_path, &st, cctx->uid, cctx->gid); 612 ret = copy_dir(cctx, ifd, src_ent_path, 625 &st, cctx->uid, cctx->gid); 646 copy_dir(struct copy_ctx *cctx, argument 769 struct copy_ctx *cctx = NULL; local [all...] |
| /sssd-io/src/responder/autofs/ |
| H A D | autofs_private.h | 41 struct cli_ctx *cctx; member in struct:autofs_cmd_ctx 81 int autofs_connection_setup(struct cli_ctx *cctx);
|
| H A D | autofssrv_cmd.c | 35 return sss_cmd_send_error(cmdctx->cctx, err); 41 return sss_cmd_send_empty(cmdctx->cctx); 57 sss_cmd_done(cmdctx->cctx, cmdctx); 73 sss_cmd_done(cmdctx->cctx, cmdctx); 257 cmdctx->cctx = client; 259 pctx = talloc_get_type(cmdctx->cctx->protocol_ctx, struct cli_protocol); 313 pctx = talloc_get_type(cmdctx->cctx->protocol_ctx, struct cli_protocol); 347 sss_cmd_done(cmdctx->cctx, NULL); 367 struct cli_ctx *cctx; member in struct:setautomntent_lookup_ctx 428 struct cli_ctx *client = cmdctx->cctx; 1514 autofs_connection_setup(struct cli_ctx *cctx) argument [all...] |