/sssd/src/sss_client/ |
H A D | nss_mc_group.c | 105 errno_t sss_nss_mc_getgrnam(const char *name, size_t name_len, argument 127 hash = sss_nss_mc_hash(&gr_mc_ctx, name, name_len + 1); 152 * - name_len cannot be longer than all strings 156 if (name_len > data->strs_len 157 || (data->name + name_len) > (strs_offset + data->strs_len)
|
H A D | nss_mc_initgr.c | 86 errno_t sss_nss_mc_initgroups_dyn(const char *name, size_t name_len, argument 108 hash = sss_nss_mc_hash(&initgr_mc_ctx, name, name_len + 1); 134 * - name_len cannot be longer than all strings or data 138 if (name_len > data->strs_len 142 || (data->strs + name_len) > (data_offset + data->data_len)) {
|
H A D | nss_mc_passwd.c | 98 errno_t sss_nss_mc_getpwnam(const char *name, size_t name_len, argument 120 hash = sss_nss_mc_hash(&pw_mc_ctx, name, name_len + 1); 145 * - name_len cannot be longer than all strings 149 if (name_len > data->strs_len 150 || (data->name + name_len) > (strs_offset + data->strs_len)
|
H A D | nss_passwd.c | 141 size_t replen, len, name_len; local 152 ret = sss_strnlen(name, SSS_NAME_MAX, &name_len); 158 ret = sss_nss_mc_getpwnam(name, name_len, result, buffer, buflen); 176 rd.len = name_len + 1; 182 ret = sss_nss_mc_getpwnam(name, name_len, result, buffer, buflen);
|
H A D | nss_netgroup.c | 168 size_t name_len; local 178 ret = sss_strnlen(netgroup, SSS_NAME_MAX, &name_len); 184 name = malloc(sizeof(char)*name_len + 1); 189 strncpy(name, netgroup, name_len + 1); 192 rd.len = name_len + 1;
|
H A D | nss_services.c | 170 size_t name_len; local 182 ret = sss_strnlen(name, SSS_NAME_MAX, &name_len); 196 rd.len = name_len + proto_len + 2; 203 memcpy(data, name, name_len + 1); 206 memcpy(data + name_len + 1, protocol, proto_len + 1); 209 data[name_len + 1] = '\0';
|
H A D | nss_group.c | 403 size_t replen, len, name_len; local 414 ret = sss_strnlen(name, SSS_NAME_MAX, &name_len); 420 ret = sss_nss_mc_getgrnam(name, name_len, result, buffer, buflen); 438 rd.len = name_len + 1; 444 ret = sss_nss_mc_getgrnam(name, name_len, result, buffer, buflen);
|
/sssd/src/sss_client/ssh/ |
H A D | sss_ssh_client.c | 110 uint32_t name_len; local 129 name_len = strlen(name)+1; 130 req_len = 2*sizeof(uint32_t) + name_len; 149 SAFEALIGN_SET_UINT32(req+c, name_len, &c); 150 safealign_memcpy(req+c, name, name_len, &c);
|
/sssd/src/sss_client/autofs/ |
H A D | sss_autofs.c | 63 size_t name_len; local 76 ret = sss_strnlen(mapname, MAX_AUTOMNTMAPNAME_LEN, &name_len); 82 name = malloc(sizeof(char)*name_len + 1); 87 strncpy(name, mapname, name_len + 1); 90 rd.len = name_len + 1; 253 size_t name_len; local 271 ret = sss_strnlen(ctx->mapname, MAX_AUTOMNTMAPNAME_LEN, &name_len); 288 name_len + 1 + /* mapname\0 */ 298 SAFEALIGN_SET_UINT32(data, name_len, &ctr); 300 safealign_memcpy(data+ctr, ctx->mapname, name_len 350 size_t name_len; local [all...] |
/sssd/src/sss_client/nfs/ |
H A D | sss_nfs_client.c | 228 size_t name_len; local 230 sss_strnlen(name, SSS_NAME_MAX, &name_len); 232 rc = send_recv(&rep, &rep_len, cmd, name, name_len + 1); 450 size_t name_len = 0; local 461 rc = sss_strnlen(name, SSS_NAME_MAX, &name_len); 481 size_t name_len = 0; local 492 rc = sss_strnlen(name, SSS_NAME_MAX, &name_len);
|
/sssd/src/responder/ssh/ |
H A D | sshsrv_cmd.c | 693 uint32_t name_len; local 711 SAFEALIGN_COPY_UINT32_CHECK(&name_len, body+c, body_len, &c); 712 if (name_len == 0 || name_len > body_len - c) { 718 if (!sss_utf8_check((const uint8_t *)name, name_len-1) || 719 name[name_len-1] != 0) { 723 c += name_len;
|