Lines Matching defs:resp

63     uint8_t *resp;
68 resp = talloc_size(mem_ctx, *resp_len);
69 if (resp == NULL) {
75 SAFEALIGN_SET_UINT32(&resp[p], resp_type, &p);
76 SAFEALIGN_SET_UINT32(&resp[p], err_len, &p);
77 safealign_memcpy(&resp[p], user_error_message, err_len, &p);
82 *_resp = resp;
473 static errno_t filter_responses_env(struct response_data *resp,
533 resp->do_not_send_to_client = true;
537 if (resp->len > var_name_len && resp->data[var_name_len] == '='
538 && memcmp(resp->data, var_name, var_name_len) == 0) {
539 resp->do_not_send_to_client = true;
551 struct response_data *resp;
575 resp = resp_list;
576 while(resp != NULL) {
577 if (resp->type == SSS_PAM_USER_INFO) {
578 if (resp->len < sizeof(uint32_t)) {
585 resp->do_not_send_to_client = true;
586 resp = resp->next;
590 memcpy(&user_info_type, resp->data, sizeof(uint32_t));
592 resp->do_not_send_to_client = false;
595 if (resp->len != sizeof(uint32_t) + sizeof(int64_t)) {
602 memcpy(&expire_date, resp->data + sizeof(uint32_t),
608 resp->do_not_send_to_client = true;
617 } else if (resp->type == SSS_PAM_ENV_ITEM) {
618 resp->do_not_send_to_client = false;
619 ret = filter_responses_env(resp, pd, pam_filter_opts);
624 } else if (resp->type & SSS_SERVER_INFO) {
625 resp->do_not_send_to_client = true;
628 resp = resp->next;
691 struct response_data *resp;
898 resp = pd->resp_list;
899 while(resp != NULL) {
900 if (!resp->do_not_send_to_client) {
902 resp_size += resp->len;
904 resp = resp->next;
925 resp = pd->resp_list;
926 while(resp != NULL) {
927 if (!resp->do_not_send_to_client) {
928 memcpy(&body[p], &resp->type, sizeof(int32_t));
930 memcpy(&body[p], &resp->len, sizeof(int32_t));
932 memcpy(&body[p], resp->data, resp->len);
933 p += resp->len;
936 resp = resp->next;
951 uint8_t *resp;
960 resp = talloc_size(preq->pd, resp_len);
961 if (resp == NULL) {
965 memcpy(resp, &resp_type, sizeof(uint32_t));
967 memcpy(resp+sizeof(uint32_t), &dummy, sizeof(int64_t));
969 (const uint8_t *) resp);
979 resp = talloc_size(preq->pd, resp_len);
980 if (resp == NULL) {
984 memcpy(resp, &resp_type, sizeof(uint32_t));
986 memcpy(resp+sizeof(uint32_t), &dummy, sizeof(int64_t));
988 (const uint8_t *) resp);