Lines Matching defs:buf
36 uint8_t *buf)
44 memcpy(&buf[rp], &c, sizeof(uint32_t));
48 memcpy(&buf[rp], &c, sizeof(uint32_t));
52 memcpy(&buf[rp], &c, sizeof(uint32_t));
55 memcpy(&buf[rp], tok, size);
62 uint8_t *buf)
68 memcpy(&buf[rp], &c, sizeof(uint32_t));
72 memcpy(&buf[rp], &c, sizeof(uint32_t));
76 memcpy(&buf[rp], &c, sizeof(uint32_t));
83 const size_t size, uint8_t *buf)
91 memcpy(&buf[rp], &c, sizeof(uint32_t));
95 memcpy(&buf[rp], &c, sizeof(uint32_t));
98 memcpy(&buf[rp], str, size);
107 uint8_t *buf;
130 buf = malloc(len);
131 if (buf == NULL) {
137 SAFEALIGN_SETMEM_UINT32(buf, SSS_START_OF_PAM_REQUEST, &rp);
140 &buf[rp]);
143 pi->pam_service_size, &buf[rp]);
146 &buf[rp]);
149 &buf[rp]);
152 &buf[rp]);
155 &buf[rp]);
158 &buf[rp]);
161 pi->pam_authtok, pi->pam_authtok_size, &buf[rp]);
165 &buf[rp]);
167 SAFEALIGN_SETMEM_UINT32(buf + rp, SSS_END_OF_PAM_REQUEST, &rp);
171 free(buf);
176 *buffer = buf;