Searched defs:buf (Results 1 - 25 of 51) sorted by relevance

123

/sssd/src/util/crypto/
H A Dsss_crypto.c25 int generate_csprng_buffer(uint8_t *buf, size_t size) argument
34 rsize = sss_atomic_read_s(fd, buf, size);
/sssd/src/util/
H A Datomic_io.c24 ssize_t sss_atomic_io_s(int fd, void *buf, size_t n, bool do_read) argument
26 char *b = buf;
H A Dauthtok-utils.c29 uint8_t *buf, size_t buf_len,
37 || (buf == NULL && buf_len != 0)) {
58 if (buf == NULL || buf_len < *_2fa_blob_len) {
64 SAFEALIGN_COPY_UINT32(buf, &tmp_uint32_t, &c);
66 SAFEALIGN_COPY_UINT32(buf + c, &tmp_uint32_t, &c);
68 memcpy(buf + c, fa1, fa1_len + 1);
71 memcpy(buf + c, fa2, fa2_len + 1);
27 sss_auth_pack_2fa_blob(const char *fa1, size_t fa1_len, const char *fa2, size_t fa2_len, uint8_t *buf, size_t buf_len, size_t *_2fa_blob_len) argument
H A Dbackup_file.c32 char buf[BUFFER_SIZE]; local
87 numread = sss_atomic_read_s(src_fd, buf, BUFFER_SIZE);
97 written = sss_atomic_write_s(dst_fd, buf, numread);
H A Dchild_common.h42 uint8_t *buf; member in struct:response
95 uint8_t *buf, size_t len, int fd);
101 uint8_t **buf, ssize_t *len);
H A Dfind_uid.c68 char buf[BUFSIZE]; local
120 ret = sss_atomic_read_s(fd, buf, BUFSIZE);
129 buf[BUFSIZE-1] = '\0';
138 p = strstr(buf, "\nUid:\t");
/sssd/src/sss_client/
H A Dpam_message.c36 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)
33 add_authtok_item(enum pam_item_type type, enum sss_authtok_type authtok_type, const char *tok, const size_t size, uint8_t *buf) argument
61 add_uint32_t_item(enum pam_item_type type, const uint32_t val, uint8_t *buf) argument
82 add_string_item(enum pam_item_type type, const char *str, const size_t size, uint8_t *buf) argument
107 uint8_t *buf; local
[all...]
H A Dnss_mc_common.c337 char *buf, size_t len)
339 char *max = buf + len;
344 p = buf;
336 sss_nss_str_ptr_from_buffer(char **str, void **cookie, char *buf, size_t len) argument
H A Dnss_passwd.c73 uint8_t *buf, size_t *len)
84 SAFEALIGN_COPY_UINT32(&c, buf, NULL);
86 SAFEALIGN_COPY_UINT32(&c, buf+sizeof(uint32_t), NULL);
89 sbuf = (char *)&buf[8];
72 sss_nss_getpw_readrep(struct sss_nss_pw_rep *pr, uint8_t *buf, size_t *len) argument
H A Dnss_netgroup.c63 uint8_t *buf, size_t *len)
76 sbuf = (char *)(buf + sizeof(uint32_t));
82 SAFEALIGN_COPY_UINT32(&type, buf, NULL);
62 sss_nss_getnetgr_readrep(struct sss_nss_netgr_rep *pr, uint8_t *buf, size_t *len) argument
/sssd/src/tests/cmocka/
H A Ddummy_child.c41 uint8_t buf[IN_BUF_SIZE]; local
108 len = sss_atomic_read_s(STDIN_FILENO, buf, IN_BUF_SIZE);
117 written = sss_atomic_write_s(3, buf, len);
H A Dtest_authtok.c391 uint8_t *buf; local
414 buf = talloc_size(ts, needed_size);
415 assert_non_null(buf);
417 ret = sss_auth_pack_2fa_blob("abc", 0, "defg", 0, buf, needed_size,
422 assert_memory_equal(buf, "\4\0\0\0\5\0\0\0abc\0defg\0", needed_size);
424 assert_memory_equal(buf, "\0\0\0\4\0\0\0\5abc\0defg\0", needed_size);
427 ret = sss_auth_unpack_2fa_blob(ts, buf, needed_size, &fa1, &fa1_len, &fa2,
435 talloc_free(buf);
H A Dtest_child_common.c372 struct io_buffer buf; member in struct:test_exec_echo_state
390 echo_state->buf.data = (unsigned char *) talloc_strdup(echo_state, input);
391 assert_non_null(echo_state->buf.data);
392 echo_state->buf.size = strlen(input) + 1;
397 echo_state->buf.data, echo_state->buf.size,
436 uint8_t *buf; local
441 ret = read_pipe_recv(subreq, echo_state, &buf, &len);
449 assert_string_equal(buf, echo_state->buf
[all...]
/sssd/src/providers/krb5/
H A Dkrb5_access.c175 uint8_t *buf = NULL; local
179 ret = handle_child_recv(subreq, state, &buf, &len);
193 SAFEALIGN_COPY_INT32(&msg_status, buf, NULL);
/sssd/src/sss_client/libwbclient/
H A Dwbc_sid_common.c35 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",
73 char buf[WBC_SID_STRING_BUFLEN]; local
81 len = wbcSidToStringBuf(sid, buf, sizeof(buf));
[all...]
/sssd/src/tests/cwrap/
H A Dtest_server.c49 char buf[16]; local
72 ret = read(fd, buf, sizeof(buf));
76 buf[sizeof(buf) - 1] = '\0';
79 tmp = strtouint32(buf, NULL, 10);
/sssd/src/providers/ipa/
H A Dselinux_child.c41 static errno_t unpack_buffer(uint8_t *buf, argument
49 SAFEALIGN_COPY_UINT32_CHECK(&len, buf + p, size, &p);
57 ibuf->seuser = talloc_strndup(ibuf, (char *)(buf + p), len);
64 SAFEALIGN_COPY_UINT32_CHECK(&len, buf + p, size, &p);
73 ibuf->mls_range = talloc_strndup(ibuf, (char *)(buf + p), len);
80 SAFEALIGN_COPY_UINT32_CHECK(&len, buf + p, size, &p);
87 ibuf->username = talloc_strndup(ibuf, (char *)(buf + p), len);
105 r->buf = talloc_array(r, uint8_t, r->size);
106 if(r->buf == NULL) {
113 SAFEALIGN_SET_UINT32(&r->buf[
198 uint8_t *buf = NULL; local
[all...]
/sssd/src/sss_client/idmap/
H A Dsss_nss_idmap.c75 static int buf_to_kv_list(uint8_t *buf, size_t buf_len, argument
85 if (buf[c] == '\0') {
100 p = buf;
108 p = memchr(p, '\0', buf_len - (p - buf));
121 p = memchr(p, '\0', buf_len - (p - buf));
/sssd/src/util/cert/libcrypto/
H A Dcert.c98 unsigned char *buf; local
136 buf = talloc_size(mem_ctx, buf_size);
137 if (buf == NULL) {
143 der_blob = buf;
145 der_size = i2d_X509(x509, &buf);
182 uint8_t *buf = NULL; local
243 buf = talloc_size(mem_ctx, size);
244 if (buf == NULL) {
252 SAFEALIGN_SET_UINT32(buf, htobe32(SSH_RSA_HEADER_LEN), &c);
253 safealign_memcpy(&buf[
[all...]
/sssd/src/p11_child/
H A Dp11_child_nss.c454 uint8_t buf[IN_BUF_SIZE]; local
460 len = sss_atomic_read_s(fd, buf, IN_BUF_SIZE);
469 if (len == 0 || *buf == '\0') {
474 str = talloc_strndup(mem_ctx, (char *) buf, len);
/sssd/src/providers/ad/
H A Dad_machine_pw_renewal.c252 uint8_t *buf; local
261 ret = read_pipe_recv(subreq, state, &buf, &buf_len);
271 (int) buf_len, buf);
/sssd/src/providers/ldap/
H A Dsdap_child_helpers.c153 struct io_buffer *buf; local
156 buf = talloc(mem_ctx, struct io_buffer);
157 if (buf == NULL) {
162 buf->size = 6 * sizeof(uint32_t);
164 buf->size += strlen(realm_str);
167 buf->size += strlen(princ_str);
170 buf->size += strlen(keytab_name);
173 DEBUG(SSSDBG_TRACE_FUNC, "buffer size: %zu\n", buf->size);
175 buf->data = talloc_size(buf, bu
221 parse_child_response(TALLOC_CTX *mem_ctx, uint8_t *buf, ssize_t size, int *result, krb5_error_code *kerr, char **ccache, time_t *expire_time_out) argument
271 uint8_t *buf; member in struct:sdap_get_tgt_state
292 struct io_buffer *buf; local
[all...]
/sssd/src/responder/common/
H A Dresponder_packet.c181 void *buf; local
183 buf = (uint8_t *)packet->buffer + packet->iop;
193 rb = recv(fd, buf, len, 0);
227 void *buf; local
234 buf = packet->buffer + packet->iop;
238 rb = send(fd, buf, len, 0);
/sssd/src/responder/pam/
H A Dpamsrv_p11.c87 uint8_t *buf; local
108 buf = talloc_size(mem_ctx, len);
109 if (buf == NULL) {
114 safealign_memcpy(buf, pin, len, NULL);
120 buf = NULL;
129 *_buf = buf;
134 static errno_t parse_p11_child_response(TALLOC_CTX *mem_ctx, uint8_t *buf, argument
157 p = memchr(buf, '\n', buf_len);
162 if (p == buf) {
173 token_name = talloc_strndup(tmp_ctx, (char*) buf, (
442 uint8_t *buf; local
[all...]
/sssd/src/tests/
H A Dfail_over-tests.c114 char buf[16]; local
115 sprintf(buf, "service_%d", i);
118 ret = fo_new_service(ctx->fo_ctx, buf, NULL, &services[i]);
126 char buf[16]; local
127 sprintf(buf, "service_%d", i);
129 ret = fo_get_service(ctx->fo_ctx, buf, &service);
135 ret = fo_get_service(ctx->fo_ctx, buf, &service);
179 char buf[256]; local
181 inet_ntop(he->family, he->addr_list[i]->ipaddr, buf, sizeof(buf));
[all...]

Completed in 2881 milliseconds

123