/sssd/src/responder/secrets/ |
H A D | providers.c | 194 char *body = talloc_asprintf(mem_ctx, local 197 "<body>\r\n" 200 "</body>", 205 if (!body) return ENOMEM; 215 (unsigned)strlen(body), body); 216 talloc_free(body); 232 struct sec_data *body) 243 content_type, body->length); 249 head_size + body 229 sec_http_reply_with_body(TALLOC_CTX *mem_ctx, struct sec_data *reply, enum sec_http_status_codes code, const char *content_type, struct sec_data *body) argument 277 sec_http_reply_with_headers(TALLOC_CTX *mem_ctx, struct sec_data *reply, int status_code, const char *reason, struct sec_kvp *headers, int num_headers, struct sec_data *body) argument [all...] |
H A D | secsrv_private.h | 85 struct sec_data body; member in struct:sec_req_ctx 119 struct sec_data *body); 123 struct sec_data *body);
|
H A D | local.c | 785 struct sec_data body = { 0 }; local 834 ret = sec_array_to_json(state, keys, nkeys, &body.data); 837 body.length = strlen(body.data); 845 ret = sec_simple_secret_to_json(state, secret, &body.data); 848 body.length = strlen(body.data); 850 body.data = (void *)sss_base64_decode(state, secret, &body.length); 851 ret = body [all...] |
H A D | proxy.c | 292 /* CRLF separator before body */ 298 if (secreq->body.length > 0) { 300 req->length + secreq->body.length); 307 secreq->body.data, secreq->body.length); 308 req->length += secreq->body.length; 332 struct sec_data body; member in struct:proxy_http_reply 774 /* TODO: if message has no body we should return 1 */ 785 /* FIXME: body may be binary */ 786 ph_append_string(reply, &reply->body [all...] |
H A D | secsrv_cmd.c | 284 /* TODO: if message has no body we should return 1 */ 296 sec_append_string(req, &req->body.data, at, length); 297 if (!req->body.data) { 299 "Failed to store body, aborting client!\n"); 302 req->body.length += length;
|
/sssd/src/responder/common/ |
H A D | responder_packet.h | 41 void sss_packet_get_body(struct sss_packet *packet, uint8_t **body, size_t *blen);
|
H A D | responder_cmd.c | 51 uint8_t *body; local 58 sss_packet_get_body(packet, &body, &blen); 61 SAFEALIGN_SETMEM_UINT32(body, 0, NULL); 64 SAFEALIGN_SETMEM_UINT32(body + sizeof(uint32_t), 0, NULL); 110 uint8_t *body; local 154 sss_packet_get_body(pctx->creq->out, &body, &blen); 159 SAFEALIGN_COPY_UINT32(body, &protocol_version, NULL);
|
H A D | responder_packet.c | 44 * 16+ packet body */ 278 void sss_packet_get_body(struct sss_packet *packet, uint8_t **body, size_t *blen) argument 280 *body = packet->buffer + SSS_PACKET_BODY_OFFSET;
|
/sssd/src/responder/pam/ |
H A D | pamsrv_cmd.c | 127 size_t data_size, uint8_t *body, size_t blen, 138 SAFEALIGN_COPY_UINT32_CHECK(&auth_token_type, &body[*c], blen, c); 140 auth_token_data = body+(*c); 174 static int extract_string(char **var, size_t size, uint8_t *body, size_t blen, argument 180 str = body+(*c); 196 static int extract_uint32_t(uint32_t *var, size_t size, uint8_t *body, argument 202 SAFEALIGN_COPY_UINT32_CHECK(var, &body[*c], blen, c); 228 uint8_t *body, size_t blen) 243 SAFEALIGN_COPY_UINT32(&start, body, NULL); 244 SAFEALIGN_COPY_UINT32(&terminator, body 126 extract_authtok_v2(struct sss_auth_token *tok, size_t data_size, uint8_t *body, size_t blen, size_t *c) argument 227 pam_parse_in_data_v2(struct pam_data *pd, uint8_t *body, size_t blen) argument 330 pam_parse_in_data_v3(struct pam_data *pd, uint8_t *body, size_t blen) argument 349 extract_authtok_v1(struct sss_auth_token *tok, uint8_t *body, size_t blen, size_t *c) argument 378 pam_parse_in_data(struct pam_data *pd, uint8_t *body, size_t blen) argument 686 uint8_t *body; local 1064 uint8_t *body; local [all...] |
/sssd/src/tests/cmocka/ |
H A D | test_nss_srv.c | 91 uint8_t **body, size_t *blen); 94 uint8_t **body, size_t *blen) 100 return __real_sss_packet_get_body(packet, body, blen); 103 *body = sss_mock_ptr_type(uint8_t *); 106 len = strlen((const char *) *body)+1; 124 uint8_t *body; local 133 __real_sss_packet_get_body(packet, &body, &blen); 136 body, blen); 220 uint8_t *body; local 222 body 93 __wrap_sss_packet_get_body(struct sss_packet *packet, uint8_t **body, size_t *blen) argument 268 parse_user_packet(uint8_t *body, size_t blen, struct passwd *pwd) argument 299 parse_group_packet(uint8_t *body, size_t blen, struct group *gr, uint32_t *nmem) argument 331 check_initgr_packet(uint8_t *body, size_t blen, gid_t *gids, size_t num_gids) argument 520 test_nss_getpwnam_check(uint32_t status, uint8_t *body, size_t blen) argument 613 test_nss_getpwnam_search_check(uint32_t status, uint8_t *body, size_t blen) argument 683 test_nss_getpwnam_update_check(uint32_t status, uint8_t *body, size_t blen) argument 751 test_nss_getpwnam_check_fqdn(uint32_t status, uint8_t *body, size_t blen) argument 805 test_nss_getpwnam_check_space(uint32_t status, uint8_t *body, size_t blen) argument 845 test_nss_getpwnam_check_space_sub(uint32_t status, uint8_t *body, size_t blen) argument 923 test_nss_getpwnam_check_fancy_fqdn(uint32_t status, uint8_t *body, size_t blen) argument 982 test_nss_getpwuid_check(uint32_t status, uint8_t *body, size_t blen) argument 1081 test_nss_getpwuid_search_check(uint32_t status, uint8_t *body, size_t blen) argument 1150 test_nss_getpwuid_update_check(uint32_t status, uint8_t *body, size_t blen) argument 1268 test_nss_getgrnam_no_members_check(uint32_t status, uint8_t *body, size_t blen) argument 1339 test_nss_getgrnam_members_check(uint32_t status, uint8_t *body, size_t blen) argument 1414 test_nss_getgrnam_members_check_fqdn(uint32_t status, uint8_t *body, size_t blen) argument 1515 test_nss_getgrnam_members_check_subdom(uint32_t status, uint8_t *body, size_t blen) argument 1604 test_nss_getgrnam_check_mix_dom(uint32_t status, uint8_t *body, size_t blen) argument 1668 test_nss_getgrnam_check_mix_dom_fqdn(uint32_t status, uint8_t *body, size_t blen) argument 1738 test_nss_getgrnam_check_mix_subdom(uint32_t status, uint8_t *body, size_t blen) argument 1817 test_nss_getgrnam_space_check(uint32_t status, uint8_t *body, size_t blen) argument 1863 test_nss_getgrnam_space_sub_check(uint32_t status, uint8_t *body, size_t blen) argument 1909 test_nss_well_known_sid_check(uint32_t status, uint8_t *body, size_t blen) argument 2092 test_nss_getorigbyname_check(uint32_t status, uint8_t *body, size_t blen) argument 2217 test_nss_getorigbyname_extra_check(uint32_t status, uint8_t *body, size_t blen) argument 2339 test_nss_getorigbyname_multi_check(uint32_t status, uint8_t *body, size_t blen) argument 2481 test_nss_getpwnam_upn_check(uint32_t status, uint8_t *body, size_t blen) argument 2568 test_nss_initgr_check(uint32_t status, uint8_t *body, size_t blen) argument 2772 test_nss_initgr_search_check(uint32_t status, uint8_t *body, size_t blen) argument 2870 test_nss_initgr_update_check(uint32_t status, uint8_t *body, size_t blen) argument 2978 test_nss_initgr_update_2expire_attributes_check(uint32_t status, uint8_t *body, size_t blen) argument 3161 test_nss_getnamebysid_check(uint32_t status, uint8_t *body, size_t blen) argument 3268 test_nss_getnamebysid_update_check(uint32_t status, uint8_t *body, size_t blen) argument 3388 test_nss_getnamebycert_check(uint32_t status, uint8_t *body, size_t blen) argument 3490 test_nss_getsidbyname_check(uint32_t status, uint8_t *body, size_t blen) argument [all...] |
H A D | test_pam_srv.c | 419 uint8_t **body, size_t *blen); 422 uint8_t **body, size_t *blen) 428 return __real_sss_packet_get_body(packet, body, blen); 431 *body = sss_mock_ptr_type(uint8_t *); 434 len = strlen((const char *) *body) + 1; 441 uint8_t **body, size_t *blen); 447 uint8_t *body; local 457 __real_sss_packet_get_body(packet, &body, &blen); 460 body, blen); 603 static int test_pam_simple_check(uint32_t status, uint8_t *body, size_ argument 421 __wrap_sss_packet_get_body(struct sss_packet *packet, uint8_t **body, size_t *blen) argument 630 test_pam_cert_check_gdm_smartcard(uint32_t status, uint8_t *body, size_t blen) argument 680 test_pam_cert_check(uint32_t status, uint8_t *body, size_t blen) argument 719 test_pam_offline_chauthtok_check(uint32_t status, uint8_t *body, size_t blen) argument 758 test_pam_failed_offline_auth_check(uint32_t status, uint8_t *body, size_t blen) argument 765 test_pam_successful_offline_auth_check(uint32_t status, uint8_t *body, size_t blen) argument 772 test_pam_successful_cached_auth_check(uint32_t status, uint8_t *body, size_t blen) argument 779 test_pam_wrong_pw_offline_auth_check(uint32_t status, uint8_t *body, size_t blen) argument 786 test_pam_creds_insufficient_check(uint32_t status, uint8_t *body, size_t blen) argument 803 test_pam_user_unknown_check(uint32_t status, uint8_t *body, size_t blen) argument [all...] |
/sssd/src/responder/autofs/ |
H A D | autofssrv_cmd.c | 244 uint8_t *body; local 260 sss_packet_get_body(pctx->creq->in, &body, &blen); 263 if (body[blen -1] != '\0') { 268 /* If the body isn't valid UTF-8, fail */ 269 if (!sss_utf8_check(body, blen -1)) { 274 rawname = (const char *)body; 299 uint8_t *body; local 332 sss_packet_get_body(pctx->creq->out, &body, &blen); 335 SAFEALIGN_SETMEM_UINT32(body, 1, NULL); 338 SAFEALIGN_SETMEM_UINT32(body 928 uint8_t *body; local 1080 uint8_t *body; local 1152 uint8_t *body; local 1211 uint8_t *body; local 1385 uint8_t *body; local [all...] |
/sssd/src/responder/nss/ |
H A D | nsssrv_services.c | 604 uint8_t *body; local 691 sss_packet_get_body(packet, &body, &blen); 694 SAFEALIGN_SETMEM_UINT32(&body[rzero + rsize], (uint32_t)htons(port), &rsize); 710 safealign_memcpy(&body[rzero + rsize], 716 safealign_memcpy(&body[rzero + rsize], 735 sss_packet_get_body(packet, &body, &blen); 738 safealign_memcpy(&body[rzero + rsize], 750 SAFEALIGN_SETMEM_UINT32(&body[aptr], written_aliases, NULL); 768 SAFEALIGN_COPY_UINT32(body, &num, NULL); 771 SAFEALIGN_SETMEM_UINT32(body 799 uint8_t *body; local 875 parse_getservbyname(TALLOC_CTX *mem_ctx, uint8_t *body, size_t blen, struct sss_domain_info *domains, char *default_domain, char **domain_name, char **service_name, char **service_protocol) argument 1037 parse_getservbyport(TALLOC_CTX *mem_ctx, uint8_t *body, size_t blen, uint16_t *service_port, char **service_protocol) argument 1118 uint8_t *body; local 1742 uint8_t *body; local [all...] |
H A D | nsssrv_netgroup.c | 101 uint8_t *body; local 118 sss_packet_get_body(pctx->creq->in, &body, &blen); 121 if (body[blen -1] != '\0') { 126 /* If the body isn't valid UTF-8, fail */ 127 if (!sss_utf8_check(body, blen -1)) { 132 rawname = (const char *)body; 737 uint8_t *body; local 769 sss_packet_get_body(packet, &body, &blen); 772 SAFEALIGN_SETMEM_UINT32(body, 1, NULL); 775 SAFEALIGN_SETMEM_UINT32(body 937 uint8_t *body; local 987 uint8_t *body; local [all...] |
H A D | nsssrv_cmd.c | 351 uint8_t *body; local 476 sss_packet_get_body(packet, &body, &blen); 478 SAFEALIGN_SET_UINT32(&body[rp], uid, &rp); 479 SAFEALIGN_SET_UINT32(&body[rp], gid, &rp); 480 memcpy(&body[rp], name->str, name->len); 483 memcpy(&body[rp], pwfield.str, pwfield.len); 485 memcpy(&body[rp], gecos.str, gecos.len); 487 memcpy(&body[rp], homedir.str, homedir.len); 489 memcpy(&body[rp], shell.str, shell.len); 515 sss_packet_get_body(packet, &body, 1405 uint8_t *body; local 1473 uint8_t *body; local 1905 uint8_t *body; local 2536 uint8_t *body; local 2716 uint8_t *body; local 2775 uint8_t *body; local 3722 uint8_t *body; local 3991 uint8_t *body; local 4809 uint8_t *body; local 4914 uint8_t *body; local 5022 uint8_t *body; local 5086 uint8_t *body; local 5188 uint8_t *body; local 5248 uint8_t *body; local 5364 uint8_t *body; local [all...] |
/sssd/src/responder/ssh/ |
H A D | sshsrv_cmd.c | 689 uint8_t *body; local 703 sss_packet_get_body(pctx->creq->in, &body, &body_len); 705 SAFEALIGN_COPY_UINT32_CHECK(&flags, body+c, body_len, &c); 711 SAFEALIGN_COPY_UINT32_CHECK(&name_len, body+c, body_len, &c); 717 name = (char *)(body+c); 726 SAFEALIGN_COPY_UINT32_CHECK(&alias_len, body+c, body_len, &c); 732 alias = (char *)(body+c); 742 SAFEALIGN_COPY_UINT32_CHECK(&domain_len, body+c, body_len, &c); 749 domain = (char *)(body+c); 910 uint8_t *body; local 971 uint8_t *body; local [all...] |
/sssd/src/responder/pac/ |
H A D | pacsrv_cmd.c | 79 uint8_t *body; local 88 sss_packet_get_body(pctx->creq->in, &body, &blen); 97 pr_ctx->blob = body; 106 ret = ad_get_data_from_pac(pr_ctx, body, blen,
|
/sssd/src/tests/ |
H A D | debug-tests.c | 125 const char *body = "some error"; local 160 DEBUG(level, "%s\n", body); 216 debug_prg_name, function, level, body); 236 time_year, debug_prg_name, function, level, body); 245 debug_prg_name, function, level, body);
|
/sssd/src/krb5_plugin/ |
H A D | sssd_krb5_locator_plugin.c | 49 #define PLUGIN_DEBUG(body) do { \ 51 plugin_debug_fn body; \
|