Lines Matching defs:buf
154 struct io_buffer *buf;
157 buf = talloc(mem_ctx, struct io_buffer);
158 if (buf == NULL) {
163 buf->size = 6 * sizeof(uint32_t);
165 buf->size += strlen(realm_str);
168 buf->size += strlen(princ_str);
171 buf->size += strlen(keytab_name);
174 DEBUG(SSSDBG_TRACE_FUNC, "buffer size: %zu\n", buf->size);
176 buf->data = talloc_size(buf, buf->size);
177 if (buf->data == NULL) {
179 talloc_free(buf);
187 SAFEALIGN_SET_UINT32(&buf->data[rp], strlen(realm_str), &rp);
188 safealign_memcpy(&buf->data[rp], realm_str, strlen(realm_str), &rp);
190 SAFEALIGN_SET_UINT32(&buf->data[rp], 0, &rp);
195 SAFEALIGN_SET_UINT32(&buf->data[rp], strlen(princ_str), &rp);
196 safealign_memcpy(&buf->data[rp], princ_str, strlen(princ_str), &rp);
198 SAFEALIGN_SET_UINT32(&buf->data[rp], 0, &rp);
203 SAFEALIGN_SET_UINT32(&buf->data[rp], strlen(keytab_name), &rp);
204 safealign_memcpy(&buf->data[rp], keytab_name, strlen(keytab_name), &rp);
206 SAFEALIGN_SET_UINT32(&buf->data[rp], 0, &rp);
210 SAFEALIGN_SET_UINT32(&buf->data[rp], lifetime, &rp);
215 SAFEALIGN_SET_UINT32(&buf->data[rp], geteuid(), &rp);
216 SAFEALIGN_SET_UINT32(&buf->data[rp], getegid(), &rp);
218 *io_buf = buf;
223 uint8_t *buf, ssize_t size,
235 SAFEALIGN_COPY_UINT32_CHECK(&res, buf + p, size, &p);
238 safealign_memcpy(&krberr, buf+p, sizeof(krberr), &p);
241 SAFEALIGN_COPY_UINT32_CHECK(&len, buf + p, size, &p);
250 safealign_memcpy(ccn, buf+p, sizeof(char) * len, &p);
257 safealign_memcpy(&expire_time, buf+p, sizeof(time_t), &p);
272 uint8_t *buf;
293 struct io_buffer *buf;
321 &buf);
339 subreq = write_pipe_send(state, ev, buf->data, buf->size,
389 ret = read_pipe_recv(subreq, state, &state->buf, &state->len);
423 ret = parse_child_response(mem_ctx, state->buf, state->len,