Searched refs:buflen (Results 1 - 25 of 28) sorted by relevance

12

/sssd-io/src/sss_client/
H A Dnss_common.h30 size_t buflen; member in struct:sss_nss_pw_rep
39 size_t buflen; member in struct:sss_nss_gr_rep
H A Dnss_mc.h75 char *buffer, size_t buflen);
78 char *buffer, size_t buflen);
83 char *buffer, size_t buflen);
86 char *buffer, size_t buflen);
H A Dnss_passwd.c86 dlen = pr->buflen;
131 char *buffer, size_t buflen, int *errnop)
142 if (!buffer || !buflen) {
153 ret = sss_nss_mc_getpwnam(name, name_len, result, buffer, buflen);
177 ret = sss_nss_mc_getpwnam(name, name_len, result, buffer, buflen);
205 pwrep.buflen = buflen;
242 char *buffer, size_t buflen, int *errnop)
254 if (!buffer || !buflen) {
259 ret = sss_nss_mc_getpwuid(uid, result, buffer, buflen);
130 _nss_sss_getpwnam_r(const char *name, struct passwd *result, char *buffer, size_t buflen, int *errnop) argument
241 _nss_sss_getpwuid_r(uid_t uid, struct passwd *result, char *buffer, size_t buflen, int *errnop) argument
368 internal_getpwent_r(struct passwd *result, char *buffer, size_t buflen, int *errnop) argument
441 _nss_sss_getpwent_r(struct passwd *result, char *buffer, size_t buflen, int *errnop) argument
[all...]
H A Dnss_services.c75 size_t buflen; member in struct:sss_nss_svc_rep
109 dlen = sr->buflen;
165 char *buffer, size_t buflen,
180 if (!buffer || !buflen) {
227 svcrep.buflen = buflen;
269 char *buffer, size_t buflen,
284 if (!buffer || !buflen) {
329 svcrep.buflen = buflen;
162 _nss_sss_getservbyname_r(const char *name, const char *protocol, struct servent *result, char *buffer, size_t buflen, int *errnop) argument
267 _nss_sss_getservbyport_r(int port, const char *protocol, struct servent *result, char *buffer, size_t buflen, int *errnop) argument
393 _nss_sss_getservent_r(struct servent *result, char *buffer, size_t buflen, int *errnop) argument
406 internal_getservent_r(struct servent *result, char *buffer, size_t buflen, int *errnop) argument
[all...]
H A Dnss_netgroup.c59 size_t buflen; member in struct:sss_nss_netgr_rep
78 dlen = pr->buflen;
221 char *buffer, size_t buflen,
234 if (!buffer || !buflen) {
250 netgrrep.buflen = buflen;
292 return internal_getnetgrent_r(result, buffer, buflen, errnop);
296 char *buffer, size_t buflen,
302 nret = internal_getnetgrent_r(result, buffer, buflen, errnop);
220 internal_getnetgrent_r(struct __netgrent *result, char *buffer, size_t buflen, int *errnop) argument
295 _nss_sss_getnetgrent_r(struct __netgrent *result, char *buffer, size_t buflen, int *errnop) argument
H A Dnss_group.c214 dlen = pr->buflen;
394 char *buffer, size_t buflen, int *errnop)
405 if (!buffer || !buflen) {
416 ret = sss_nss_mc_getgrnam(name, name_len, result, buffer, buflen);
440 ret = sss_nss_mc_getgrnam(name, name_len, result, buffer, buflen);
472 grrep.buflen = buflen;
513 char *buffer, size_t buflen, int *errnop)
525 if (!buffer || !buflen) {
530 ret = sss_nss_mc_getgrgid(gid, result, buffer, buflen);
393 _nss_sss_getgrnam_r(const char *name, struct group *result, char *buffer, size_t buflen, int *errnop) argument
512 _nss_sss_getgrgid_r(gid_t gid, struct group *result, char *buffer, size_t buflen, int *errnop) argument
647 internal_getgrent_r(struct group *result, char *buffer, size_t buflen, int *errnop) argument
722 _nss_sss_getgrent_r(struct group *result, char *buffer, size_t buflen, int *errnop) argument
[all...]
H A Dnss_mc_group.c37 char *buffer, size_t buflen)
57 if (data->strs_len + memsize > buflen) {
107 char *buffer, size_t buflen)
177 ret = sss_nss_mc_parse_result(rec, result, buffer, buflen);
187 char *buffer, size_t buflen)
245 ret = sss_nss_mc_parse_result(rec, result, buffer, buflen);
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
H A Dnss_mc_passwd.c36 char *buffer, size_t buflen)
52 if (data->strs_len > buflen) {
100 char *buffer, size_t buflen)
170 ret = sss_nss_mc_parse_result(rec, result, buffer, buflen);
180 char *buffer, size_t buflen)
238 ret = sss_nss_mc_parse_result(rec, result, buffer, buflen);
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
H A Dpam_sss.c498 static int user_info_offline_auth(pam_handle_t *pamh, size_t buflen, argument
509 if (buflen != sizeof(uint32_t) + sizeof(int64_t)) {
547 size_t buflen,
554 if (buflen != 2* sizeof(uint32_t)) {
581 size_t buflen,
589 if (buflen != 2* sizeof(uint32_t)) {
621 static int user_info_offline_auth_delayed(pam_handle_t *pamh, size_t buflen, argument
632 if (buflen != sizeof(uint32_t) + sizeof(int64_t)) {
702 static int user_info_account_expired(pam_handle_t *pamh, size_t buflen, argument
711 if (buflen <
546 user_info_grace_login(pam_handle_t *pamh, size_t buflen, uint8_t *buf) argument
580 user_info_expire_warn(pam_handle_t *pamh, size_t buflen, uint8_t *buf) argument
759 user_info_chpass_error(pam_handle_t *pamh, size_t buflen, uint8_t *buf) argument
814 eval_user_info_response(pam_handle_t *pamh, size_t buflen, uint8_t *buf) argument
960 eval_response(pam_handle_t *pamh, size_t buflen, uint8_t *buf, struct pam_items *pi) argument
[all...]
/sssd-io/src/krb5_plugin/
H A Dsssd_krb5_localauth_plugin.c31 char *buffer, size_t buflen, int *errnop);
44 size_t buflen; local
61 buflen = DEFAULT_BUFSIZE;
62 buffer = malloc(buflen);
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);
118 size_t buflen; local
129 buflen = DEFAULT_BUFSIZE;
130 buffer = malloc(buflen);
136 nss_status = _nss_sss_getpwnam_r(princ_str, &pwd, buffer, buflen,
[all...]
/sssd-io/src/providers/proxy/
H A Dproxy.h49 char *buffer, size_t buflen, int *errnop);
51 char *buffer, size_t buflen, int *errnop);
54 char *buffer, size_t buflen, int *errnop);
58 char *buffer, size_t buflen, int *errnop);
60 char *buffer, size_t buflen, int *errnop);
63 char *buffer, size_t buflen, int *errnop);
72 size_t buflen, int *errnop);
79 char *buffer, size_t buflen,
83 char *buffer, size_t buflen,
87 char *buffer, size_t buflen,
[all...]
H A Dproxy_id.c54 size_t buflen; local
80 buflen = DEFAULT_BUFSIZE;
81 buffer = talloc_size(tmpctx, buflen);
89 status = ctx->ops.getpwnam_r(shortname_or_alias, pwd, buffer, buflen, &ret);
124 memset(buffer, 0, buflen);
126 status = ctx->ops.getpwuid_r(uid, pwd, buffer, buflen, &ret);
349 size_t buflen; local
367 buflen = DEFAULT_BUFSIZE;
368 buffer = talloc_size(tmpctx, buflen);
374 status = ctx->ops.getpwuid_r(uid, pwd, buffer, buflen,
416 size_t buflen; local
880 grow_group_buffer(TALLOC_CTX *mem_ctx, char **buffer, size_t *buflen) argument
955 size_t buflen = 0; local
1109 size_t buflen = 0; local
1193 size_t buflen; local
1353 size_t buflen; local
[all...]
H A Dproxy_services.c213 size_t buflen; local
235 buflen = DEFAULT_BUFSIZE;
236 buffer = talloc_size(tmpctx, buflen);
268 status = ctx->ops.getservent_r(svc, buffer, buflen, &ret);
273 if (buflen < MAX_BUF_SIZE) {
274 buflen *= 2;
276 if (buflen > MAX_BUF_SIZE) {
277 buflen = MAX_BUF_SIZE;
279 newbuf = talloc_realloc_size(tmpctx, buffer, buflen);
/sssd-io/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);
226 size_t buflen; local
238 buflen = DEFAULT_BUFSIZE;
239 buffer = malloc(buflen);
244 status = ctx->getpwnam_r(name, &lpwd, buffer, buflen,
261 size_t buflen; local
378 size_t buflen = 0; local
422 size_t buflen = 0; local
497 size_t buflen; local
565 size_t buflen = 0; local
[all...]
H A Dwbc_sid_common.c33 * length. If buflen is too small, return the string length that would
35 int wbcSidToStringBuf(const struct wbcDomainSid *sid, char *buf, int buflen) argument
41 strncpy(buf, "(NULL SID)", buflen);
42 buf[buflen < 10 ? buflen :10] = '\0';
53 ofs = snprintf(buf, buflen, "S-%hhu-", (unsigned char)sid->sid_rev_num);
55 ofs += snprintf(buf + ofs, MAX(buflen - ofs, 0), "0x%llx",
58 ofs += snprintf(buf + ofs, MAX(buflen - ofs, 0), "%llu",
63 ofs += snprintf(buf + ofs, MAX(buflen - ofs, 0), "-%u",
/sssd-io/src/sss_client/idmap/
H A Dsss_nss_ex.c68 inp->result.pwrep.buflen);
75 inp->result.pwrep.buflen);
82 inp->result.grrep.buflen);
89 inp->result.grrep.buflen);
132 || inp->result.pwrep.buflen == 0) {
141 || inp->result.grrep.buflen == 0) {
358 char *buffer, size_t buflen,
368 .result.pwrep.buflen = buflen};
390 char *buffer, size_t buflen,
357 sss_nss_getpwnam_timeout(const char *name, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result, uint32_t flags, unsigned int timeout) argument
389 sss_nss_getpwuid_timeout(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, struct passwd **result, uint32_t flags, unsigned int timeout) argument
421 sss_nss_getgrnam_timeout(const char *name, struct group *grp, char *buffer, size_t buflen, struct group **result, uint32_t flags, unsigned int timeout) argument
452 sss_nss_getgrgid_timeout(gid_t gid, struct group *grp, char *buffer, size_t buflen, struct group **result, uint32_t flags, unsigned int timeout) argument
[all...]
H A Dsss_nss_idmap.h190 * @param[in] buflen same as for getpwnam_r(3)
204 char *buffer, size_t buflen,
214 * @param[in] buflen same as for getpwuid_r(3)
228 char *buffer, size_t buflen,
238 * @param[in] buflen same as for getgrnam_r(3)
252 char *buffer, size_t buflen, struct group **result,
261 * @param[in] buflen same as for getgrgid_r(3)
275 char *buffer, size_t buflen, struct group **result,
/sssd-io/src/tests/intg/
H A Dsssd_passwd.py51 def getpwnam_r(name, result_p, buffer_p, buflen):
57 size_t buflen,
68 res = func(c_char_p(name), result_p, buffer_p, buflen, errno)
73 def getpwuid_r(uid, result_p, buffer_p, buflen):
79 size_t buflen,
89 res = func(uid, result_p, buffer_p, buflen, errno)
126 def getpwent_r(result_p, buffer_p, buflen):
130 char *buffer, size_t buflen,
139 res = func(result_p, buffer_p, buflen, errno)
H A Dsssd_group.py33 def getgrnam_r(name, result_p, buffer_p, buflen):
39 size_t buflen,
50 res = func(c_char_p(name), result_p, buffer_p, buflen, errno)
55 def getgrgid_r(gid, result_p, buffer_p, buflen):
61 size_t buflen,
71 res = func(gid, result_p, buffer_p, buflen, errno)
/sssd-io/src/util/crypto/libcrypto/
H A Dcrypto_sha512crypt.c75 char *buffer, size_t buflen)
275 if (buflen <= SALT_PREF_SIZE) {
281 buflen -= SALT_PREF_SIZE;
284 n = snprintf(cp, buflen, "%s%zu$",
286 if (n < 0 || n >= buflen) {
291 buflen -= n;
294 if (buflen <= salt_len + 1) {
300 buflen -= salt_len + 1;
307 b64_from_24bit(&cp, &buflen, 4, alt_result[p1], alt_result[p2], alt_result[p3]);
308 if (buflen
73 sha512_crypt_r(const char *key, const char *salt, char *buffer, size_t buflen) argument
[all...]
/sssd-io/src/util/crypto/nss/
H A Dnss_sha512crypt.c73 char *buffer, size_t buflen)
265 if (buflen <= SALT_PREF_SIZE) {
271 buflen -= SALT_PREF_SIZE;
274 n = snprintf(cp, buflen, "%s%zu$",
276 if (n < 0 || n >= buflen) {
281 buflen -= n;
284 if (buflen <= salt_len + 1) {
290 buflen -= salt_len + 1;
297 b64_from_24bit(&cp, &buflen, 4, alt_result[p1], alt_result[p2], alt_result[p3]);
298 if (buflen
71 sha512_crypt_r(const char *key, const char *salt, char *buffer, size_t buflen) argument
[all...]
/sssd-io/src/sss_client/nfs/
H A Dsss_nfs_client.c78 size_t buflen = 0; local
88 buflen += BUF_LEN;
89 if ((p = realloc(buf, buflen)) == NULL) {
94 rc = sss_nss_mc_getpwnam(name, len, &pwd, buf, buflen);
115 size_t buflen = 0; local
125 buflen += BUF_LEN;
126 if ((p = realloc(buf, buflen)) == NULL) {
131 rc = sss_nss_mc_getgrnam(name, len, &grp, buf, buflen);
152 size_t buflen = 0; local
160 buflen
193 size_t buflen = 0; local
[all...]
/sssd-io/src/tools/sssctl/
H A Dsssctl_user_checks.c135 char *buffer, size_t buflen,
140 size_t buflen; local
158 buflen = DEFAULT_BUFSIZE;
159 buffer = malloc(buflen);
166 status = sss_getpwnam_r(user, &pwd, buffer, buflen, &nss_errno);
/sssd-io/src/tests/cmocka/
H A Dtest_sssd_krb5_localauth_plugin.c45 char *buffer, size_t buflen, int *errnop)
52 assert_int_not_equal(buflen, 0);
59 assert_true(buflen > strlen(test_data->name));
60 strncpy(buffer, test_data->name, buflen);
44 _nss_sss_getpwnam_r(const char *name, struct passwd *result, char *buffer, size_t buflen, int *errnop) argument
/sssd-io/src/providers/ad/
H A Dad_gpo_child.c281 int buflen)
337 written = sss_atomic_write_s(fd, buf, buflen);
345 if (written != buflen) {
348 written, buflen);
535 int buflen = 0; local
571 buflen = smbc_getFunctionRead(smbc_ctx)(smbc_ctx, file, buf, SMB_BUFFER_SIZE);
572 if (buflen < 0) {
579 DEBUG(SSSDBG_TRACE_ALL, "smb_buflen: %d\n", buflen);
581 ret = gpo_cache_store_file(smb_path, smb_cse_suffix, buf, buflen);
278 gpo_cache_store_file(const char *smb_path, const char *smb_cse_suffix, uint8_t *buf, int buflen) argument

Completed in 233 milliseconds

12