Searched defs:buffer (Results 1 - 23 of 23) sorted by relevance

/sssd/src/responder/common/
H A Dnegcache_files.c34 char buffer[BUFFER_SIZE]; local
44 ret = getpwnam_r(shortname, &pwd, buffer, BUFFER_SIZE, &pwd_result);
58 char buffer[BUFFER_SIZE]; local
62 ret = getpwuid_r(uid, &pwd, buffer, BUFFER_SIZE, &pwd_result);
76 char buffer[BUFFER_SIZE]; local
86 ret = getgrnam_r(shortname, &grp, buffer, BUFFER_SIZE, &grp_result);
100 char buffer[BUFFER_SIZE]; local
104 ret = getgrgid_r(gid, &grp, buffer, BUFFER_SIZE, &grp_result);
H A Dresponder_packet.c36 /* Structure of the buffer:
45 uint8_t *buffer; member in struct:sss_packet
51 /* Offsets to data in sss_packet's buffer */
84 packet->buffer = talloc_size(packet, packet->memsize);
85 if (!packet->buffer) {
89 memset(packet->buffer, 0, SSS_NSS_HEADER_SIZE);
127 newmem = talloc_realloc_size(packet, packet->buffer, totlen);
135 if (newmem != packet->buffer) {
136 packet->buffer = newmem;
183 buf = (uint8_t *)packet->buffer
[all...]
/sssd/src/sss_client/
H A Dpam_message.c104 int pack_message_v3(struct pam_items *pi, size_t *size, uint8_t **buffer) argument
176 *buffer = buf;
H A Dnss_mc_group.c37 char *buffer, size_t buflen)
63 /* copy in buffer */
64 membuf = buffer + memsize;
70 /* The address &buffer[0] must be aligned to sizeof(char *) */
71 if (!IS_ALIGNED(buffer, char *)) {
72 /* The buffer is not properly aligned. */
76 result->gr_mem = DISCARD_ALIGN(buffer, char **);
107 char *buffer, size_t buflen)
177 ret = sss_nss_mc_parse_result(rec, result, buffer, buflen);
187 char *buffer, size_
35 sss_nss_mc_parse_result(struct sss_mc_rec *rec, struct group *result, char *buffer, size_t buflen) argument
105 sss_nss_mc_getgrnam(const char *name, size_t name_len, struct group *result, char *buffer, size_t buflen) argument
185 sss_nss_mc_getgrgid(gid_t gid, struct group *result, char *buffer, size_t buflen) argument
[all...]
H A Dnss_mc_passwd.c36 char *buffer, size_t buflen)
58 /* copy in buffer */
59 memcpy(buffer, data->strs, data->strs_len);
67 buffer, data->strs_len);
72 buffer, data->strs_len);
77 buffer, data->strs_len);
82 buffer, data->strs_len);
87 buffer, data->strs_len);
100 char *buffer, size_t buflen)
170 ret = sss_nss_mc_parse_result(rec, result, buffer, bufle
34 sss_nss_mc_parse_result(struct sss_mc_rec *rec, struct passwd *result, char *buffer, size_t buflen) argument
98 sss_nss_mc_getpwnam(const char *name, size_t name_len, struct passwd *result, char *buffer, size_t buflen) argument
178 sss_nss_mc_getpwuid(uid_t uid, struct passwd *result, char *buffer, size_t buflen) argument
[all...]
H A Dnss_passwd.c68 char *buffer; member in struct:sss_nss_pw_rep
94 pr->result->pw_name = &(pr->buffer[i]);
102 pr->result->pw_passwd = &(pr->buffer[i]);
109 pr->result->pw_gecos = &(pr->buffer[i]);
117 pr->result->pw_dir = &(pr->buffer[i]);
124 pr->result->pw_shell = &(pr->buffer[i]);
136 char *buffer, size_t buflen, int *errnop)
146 /* Caught once glibc passing in buffer == 0x0 */
147 if (!buffer || !buflen) {
158 ret = sss_nss_mc_getpwnam(name, name_len, result, buffer, bufle
135 _nss_sss_getpwnam_r(const char *name, struct passwd *result, char *buffer, size_t buflen, int *errnop) argument
246 _nss_sss_getpwuid_r(uid_t uid, struct passwd *result, char *buffer, size_t buflen, int *errnop) argument
370 internal_getpwent_r(struct passwd *result, char *buffer, size_t buflen, int *errnop) argument
440 _nss_sss_getpwent_r(struct passwd *result, char *buffer, size_t buflen, int *errnop) argument
[all...]
H A Dsssd_pac.c204 krb5_octet **buffer,
213 bp = *buffer;
236 *buffer = bp;
247 krb5_octet **buffer,
257 bp = *buffer;
296 *buffer = bp;
200 sssdpac_externalize(krb5_context kcontext, krb5_authdata_context context, void *plugin_context, void *request_context, krb5_octet **buffer, size_t *lenremain) argument
243 sssdpac_internalize(krb5_context kcontext, krb5_authdata_context context, void *plugin_context, void *request_context, krb5_octet **buffer, size_t *lenremain) argument
H A Dnss_netgroup.c58 char *buffer; member in struct:sss_nss_netgr_rep
88 temp = &(pr->buffer[i]);
103 temp = &(pr->buffer[i]);
118 temp = &(pr->buffer[i]);
137 temp = &(pr->buffer[i]);
221 char *buffer, size_t buflen,
233 /* Caught once glibc passing in buffer == 0x0 */
234 if (!buffer || !buflen) return ERANGE;
246 netgrrep.buffer = buffer;
220 internal_getnetgrent_r(struct __netgrent *result, char *buffer, size_t buflen, int *errnop) argument
292 _nss_sss_getnetgrent_r(struct __netgrent *result, char *buffer, size_t buflen, int *errnop) argument
[all...]
H A Dnss_services.c74 char *buffer; member in struct:sss_nss_svc_rep
113 sr->result->s_name = &(sr->buffer[i]);
122 sr->result->s_proto = &(sr->buffer[i]);
130 /* Make sure sr->buffer[i+pad] is aligned to sizeof(char *) */
134 sr->result->s_aliases = DISCARD_ALIGN(&(sr->buffer[i+pad]), char **);
146 sr->result->s_aliases[l] = &(sr->buffer[ptaliases]);
165 char *buffer, size_t buflen,
179 /* Caught once glibc passing in buffer == 0x0 */
180 if (!buffer || !buflen) return ERANGE;
223 svcrep.buffer
162 _nss_sss_getservbyname_r(const char *name, const char *protocol, struct servent *result, char *buffer, size_t buflen, int *errnop) argument
264 _nss_sss_getservbyport_r(int port, const char *protocol, struct servent *result, char *buffer, size_t buflen, int *errnop) argument
387 _nss_sss_getservent_r(struct servent *result, char *buffer, size_t buflen, int *errnop) argument
400 internal_getservent_r(struct servent *result, char *buffer, size_t buflen, int *errnop) argument
[all...]
H A Dnss_group.c116 /* prevent _clean() from freeing the buffer */
195 char *buffer; member in struct:sss_nss_gr_rep
220 pr->result->gr_name = &(pr->buffer[0]);
229 pr->result->gr_passwd = &(pr->buffer[i]);
236 /* Make sure pr->buffer[i+pad] is aligned to sizeof(char *) */
240 pr->result->gr_mem = DISCARD_ALIGN(&(pr->buffer[i+pad]), char **);
251 pr->result->gr_mem[l] = &(pr->buffer[ptmem]);
356 /* check we have enough space in the buffer */
398 char *buffer, size_t buflen, int *errnop)
408 /* Caught once glibc passing in buffer
397 _nss_sss_getgrnam_r(const char *name, struct group *result, char *buffer, size_t buflen, int *errnop) argument
516 _nss_sss_getgrgid_r(gid_t gid, struct group *result, char *buffer, size_t buflen, int *errnop) argument
648 internal_getgrent_r(struct group *result, char *buffer, size_t buflen, int *errnop) argument
720 _nss_sss_getgrent_r(struct group *result, char *buffer, size_t buflen, int *errnop) argument
[all...]
/sssd/src/providers/proxy/
H A Dproxy_netgroup.c137 char buffer[BUFLEN]; local
166 status = ctx->ops.getnetgrent_r(&result, buffer, BUFLEN, &ret);
H A Dproxy_services.c117 char buffer[BUFLEN]; local
129 buffer, BUFLEN, &ret);
163 char buffer[BUFLEN]; local
182 buffer, BUFLEN, &ret);
214 char *buffer; local
236 buffer = talloc_size(tmpctx, buflen);
237 if (!buffer) {
268 status = ctx->ops.getservent_r(svc, buffer, buflen, &ret);
272 /* buffer too small ? */
279 newbuf = talloc_realloc_size(tmpctx, buffer, bufle
[all...]
H A Dproxy_id.c52 char *buffer; local
80 buffer = talloc_size(tmpctx, buflen);
81 if (!buffer) {
88 status = ctx->ops.getpwnam_r(shortname_or_alias, pwd, buffer, buflen, &ret);
123 memset(buffer, 0, buflen);
125 status = ctx->ops.getpwuid_r(uid, pwd, buffer, buflen, &ret);
347 char *buffer; local
367 buffer = talloc_size(tmpctx, buflen);
368 if (!buffer) {
373 status = ctx->ops.getpwuid_r(uid, pwd, buffer, bufle
416 char *buffer; local
735 grow_group_buffer(TALLOC_CTX *mem_ctx, char **buffer, size_t *buflen) argument
809 char *buffer = 0; local
963 char *buffer = NULL; local
1049 char *buffer; local
1207 char *buffer; local
[all...]
/sssd/src/krb5_plugin/
H A Dsssd_krb5_localauth_plugin.c31 char *buffer, size_t buflen, int *errnop);
43 char *buffer = NULL; local
62 buffer = malloc(buflen);
63 if (buffer == NULL) {
68 nss_status = _nss_sss_getpwnam_r(princ_str, &pwd, buffer, buflen,
81 nss_status = _nss_sss_getpwnam_r(lname, &pwd, buffer, buflen, &nss_errno);
100 free(buffer);
117 char *buffer = NULL; local
130 buffer = malloc(buflen);
131 if (buffer
[all...]
/sssd/src/sss_client/ssh/
H A Dsss_ssh_knownhostsproxy.c48 char buffer[BUFFER_SIZE]; local
126 res = read(fds[i].fd, buffer, BUFFER_SIZE);
141 res = sss_atomic_write_s(i == 0 ? sock : 1, buffer, res);
/sssd/src/tests/
H A Dsafe-format-tests.c179 char buffer[8]; local
182 ret = safe_format_string(buffer, 8, "%s", "space", "man", NULL);
184 ck_assert_str_eq(buffer, "space");
186 ret = safe_format_string(buffer, 8, "", "space", "man", NULL);
188 ck_assert_str_eq(buffer, "");
190 ret = safe_format_string(buffer, 8, "the %s %s dances away", "space", "man", NULL);
192 ck_assert_str_eq(buffer, "the spa");
197 ret = safe_format_string(buffer, 8, "%5$s", NULL);
/sssd/src/responder/secrets/
H A Dsecsrv_cmd.c515 char buffer[SEC_PACKET_MAX_RECV_SIZE]; local
516 struct sec_data data = { buffer,
H A Dproxy.c822 char buffer[SEC_PACKET_MAX_RECV_SIZE]; local
823 struct sec_data packet = { buffer,
/sssd/src/sss_client/libwbclient/
H A Dwbc_pwd_sssd.c38 char *buffer, size_t buflen, int *errnop);
40 char *buffer, size_t buflen, int *errnop);
43 char *buffer, size_t buflen, int *errnop);
47 char *buffer, size_t buflen, int *errnop);
49 char *buffer, size_t buflen, int *errnop);
52 char *buffer, size_t buflen, int *errnop);
225 char *buffer = NULL; local
239 buffer = malloc(buflen);
240 if (buffer == NULL) {
244 status = ctx->getpwnam_r(name, &lpwd, buffer, bufle
260 char *buffer = NULL; local
377 char *buffer = NULL; local
421 char *buffer = NULL; local
496 char *buffer = NULL; local
564 char *buffer = NULL; local
[all...]
/sssd/src/util/crypto/nss/
H A Dnss_sha512crypt.c73 char *buffer, size_t buflen)
270 cp = stpncpy(buffer, sha512_salt_prefix, SALT_PREF_SIZE);
318 /* Clear the buffer for the intermediate result so that people attaching
71 sha512_crypt_r(const char *key, const char *salt, char *buffer, size_t buflen) argument
/sssd/src/util/crypto/libcrypto/
H A Dcrypto_sha512crypt.c75 char *buffer, size_t buflen)
280 cp = stpncpy(buffer, sha512_salt_prefix, SALT_PREF_SIZE);
328 /* Clear the buffer for the intermediate result so that people attaching
73 sha512_crypt_r(const char *key, const char *salt, char *buffer, size_t buflen) argument
/sssd/src/sbus/
H A Dsssd_dbus_introspect.c328 char *buffer; local
332 memstream = open_memstream(&buffer, &size);
355 introspect = talloc_memdup(mem_ctx, buffer, size + 1);
362 free(buffer);
/sssd/src/tools/
H A Dfiles.c284 char *buffer; local
287 buffer = talloc_array(mem_ctx, char, size);
288 if (!buffer) {
293 nchars = readlinkat(dir_fd, filename, buffer, size);
295 talloc_free(buffer);
300 /* The buffer was large enough */
304 /* Try again with a bigger buffer */
306 new_buffer = talloc_realloc(mem_ctx, buffer, char, size);
308 talloc_free(buffer);
311 buffer
[all...]

Completed in 40 milliseconds