Searched defs:buflen (Results 1 - 17 of 17) sorted by relevance

/sssd/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/src/sss_client/libwbclient/
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",
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...]
/sssd/src/sss_client/
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 Dnss_passwd.c69 size_t buflen; member in struct:sss_nss_pw_rep
91 dlen = pr->buflen;
136 char *buffer, size_t buflen, int *errnop)
147 if (!buffer || !buflen) {
158 ret = sss_nss_mc_getpwnam(name, name_len, result, buffer, buflen);
182 ret = sss_nss_mc_getpwnam(name, name_len, result, buffer, buflen);
210 pwrep.buflen = buflen;
247 char *buffer, size_t buflen, int *errnop)
259 if (!buffer || !buflen) retur
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 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) return ERANGE;
247 netgrrep.buflen = buflen;
289 return internal_getnetgrent_r(result, buffer, buflen, errnop);
293 char *buffer, size_t buflen,
299 nret = internal_getnetgrent_r(result, buffer, buflen, errnop);
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
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) return ERANGE;
224 svcrep.buflen = buflen;
266 char *buffer, size_t buflen,
281 if (!buffer || !buflen) return ERANGE;
323 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
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.c196 size_t buflen; member in struct:sss_nss_gr_rep
218 dlen = pr->buflen;
398 char *buffer, size_t buflen, int *errnop)
409 if (!buffer || !buflen) {
420 ret = sss_nss_mc_getgrnam(name, name_len, result, buffer, buflen);
444 ret = sss_nss_mc_getgrnam(name, name_len, result, buffer, buflen);
476 grrep.buflen = buflen;
517 char *buffer, size_t buflen, int *errnop)
529 if (!buffer || !buflen) retur
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...]
H A Dpam_sss.c451 static int user_info_offline_auth(pam_handle_t *pamh, size_t buflen, argument
462 if (buflen != sizeof(uint32_t) + sizeof(int64_t)) {
500 size_t buflen,
507 if (buflen != 2* sizeof(uint32_t)) {
534 size_t buflen,
542 if (buflen != 2* sizeof(uint32_t)) {
574 static int user_info_offline_auth_delayed(pam_handle_t *pamh, size_t buflen, argument
585 if (buflen != sizeof(uint32_t) + sizeof(int64_t)) {
655 static int user_info_account_expired(pam_handle_t *pamh, size_t buflen, argument
664 if (buflen <
499 user_info_grace_login(pam_handle_t *pamh, size_t buflen, uint8_t *buf) argument
533 user_info_expire_warn(pam_handle_t *pamh, size_t buflen, uint8_t *buf) argument
712 user_info_chpass_error(pam_handle_t *pamh, size_t buflen, uint8_t *buf) argument
767 eval_user_info_response(pam_handle_t *pamh, size_t buflen, uint8_t *buf) argument
813 eval_response(pam_handle_t *pamh, size_t buflen, uint8_t *buf, struct pam_items *pi) argument
[all...]
/sssd/src/providers/proxy/
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);
H A Dproxy_id.c53 size_t buflen; local
79 buflen = DEFAULT_BUFSIZE;
80 buffer = talloc_size(tmpctx, buflen);
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);
348 size_t buflen; local
366 buflen = DEFAULT_BUFSIZE;
367 buffer = talloc_size(tmpctx, buflen);
373 status = ctx->ops.getpwuid_r(uid, pwd, buffer, buflen,
415 size_t buflen; local
735 grow_group_buffer(TALLOC_CTX *mem_ctx, char **buffer, size_t *buflen) argument
810 size_t buflen = 0; local
964 size_t buflen = 0; local
1048 size_t buflen; local
1208 size_t buflen; local
[all...]
/sssd/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/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/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
/sssd/src/sss_client/nfs/
H A Dsss_nfs_client.c72 size_t buflen = 0; local
82 buflen += BUF_LEN;
83 if ((p = realloc(buf, buflen)) == NULL) {
88 rc = sss_nss_mc_getpwnam(name, len, &pwd, buf, buflen);
109 size_t buflen = 0; local
119 buflen += BUF_LEN;
120 if ((p = realloc(buf, buflen)) == NULL) {
125 rc = sss_nss_mc_getgrnam(name, len, &grp, buf, buflen);
146 size_t buflen = 0; local
154 buflen
187 size_t buflen = 0; local
[all...]
/sssd/src/tests/cmocka/
H A Dtest_resolv_fake.c308 size_t buflen; local
324 buf = create_srv_buffer(test_ctx, TEST_SRV_QUERY, rr, 2, &buflen);
326 mock_ares_query(0, 0, buf, buflen);

Completed in 5579 milliseconds