/sssd-io/src/util/crypto/ |
H A D | sss_crypto.c | 29 int generate_csprng_buffer(uint8_t *buf, size_t size) argument 38 rsize = sss_atomic_read_s(fd, buf, size);
|
/sssd-io/src/util/ |
H A D | atomic_io.c | 24 ssize_t sss_atomic_io_s(int fd, void *buf, size_t n, bool do_read) argument 26 char *b = buf;
|
H A D | backup_file.c | 32 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 D | child_common.h | 42 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 D | authtok-utils.c | 29 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); 80 uint8_t *buf, size_t buf_len, 135 if (buf == NULL || buf_len < *_sc_blob_len) { 141 SAFEALIGN_COPY_UINT32(buf, 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 76 sss_auth_pack_sc_blob(const char *pin, size_t pin_len, const char *token_name, size_t token_name_len, const char *module_name, size_t module_name_len, const char *key_id, size_t key_id_len, uint8_t *buf, size_t buf_len, size_t *_sc_blob_len) argument [all...] |
H A D | find_uid.c | 68 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-io/src/sss_client/ |
H A D | pam_message.c | 36 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 D | nss_mc_common.c | 337 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 D | nss_netgroup.c | 63 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
|
H A D | nss_passwd.c | 68 uint8_t *buf, size_t *len) 79 SAFEALIGN_COPY_UINT32(&c, buf, NULL); 81 SAFEALIGN_COPY_UINT32(&c, buf+sizeof(uint32_t), NULL); 84 sbuf = (char *)&buf[8]; 67 sss_nss_getpw_readrep(struct sss_nss_pw_rep *pr, uint8_t *buf, size_t *len) argument
|
H A D | nss_services.c | 82 uint8_t *buf, size_t *len) 101 SAFEALIGN_COPY_UINT32(&c, buf, NULL); 105 SAFEALIGN_COPY_UINT32(&num_aliases, buf + sizeof(uint32_t), NULL); 107 sbuf = (char *)&buf[2 * sizeof(uint32_t)]; 81 sss_nss_getsvc_readrep(struct sss_nss_svc_rep *sr, uint8_t *buf, size_t *len) argument
|
/sssd-io/src/tests/cmocka/ |
H A D | dummy_child.c | 42 uint8_t buf[IN_BUF_SIZE]; local 112 len = sss_atomic_read_s(STDIN_FILENO, buf, IN_BUF_SIZE); 121 written = sss_atomic_write_s(3, buf, len);
|
H A D | test_authtok.c | 391 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); 445 uint8_t *buf; local 461 buf [all...] |
H A D | test_child_common.c | 372 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-io/src/providers/krb5/ |
H A D | krb5_access.c | 175 uint8_t *buf = NULL; local 179 ret = handle_child_recv(subreq, state, &buf, &len); 193 SAFEALIGN_COPY_INT32(&msg_status, buf, NULL);
|
/sssd-io/src/sss_client/libwbclient/ |
H A D | wbc_sid_common.c | 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", 73 char buf[WBC_SID_STRING_BUFLEN]; local 81 len = wbcSidToStringBuf(sid, buf, sizeof(buf)); [all...] |
/sssd-io/src/tests/cwrap/ |
H A D | test_server.c | 49 char buf[16]; local 72 ret = read(fd, buf, sizeof(buf)); 76 buf[sizeof(buf) - 1] = '\0'; 79 tmp = strtouint32(buf, NULL, 10);
|
/sssd-io/src/providers/ipa/ |
H A D | selinux_child.c | 41 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[ 202 uint8_t *buf = NULL; local [all...] |
/sssd-io/src/util/cert/libcrypto/ |
H A D | cert.c | 98 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-io/src/krb5_plugin/ |
H A D | sssd_krb5_locator_plugin.c | 91 uint8_t buf[BUFSIZE + 1]; local 135 memset(buf, 0, BUFSIZE+1); 138 len = sss_atomic_read_s(fd, buf, BUFSIZE); 151 PLUGIN_DEBUG(("Found [%s] in [%s].\n", buf, krb5info_name)); 153 port_str = strrchr((char *) buf, ':'); 190 ctx->kdc_addr = strdup((char *) buf); 200 ctx->kpasswd_addr = strdup((char *) buf);
|
/sssd-io/src/providers/ad/ |
H A D | ad_machine_pw_renewal.c | 252 uint8_t *buf; local 261 ret = read_pipe_recv(subreq, state, &buf, &buf_len); 271 (int) buf_len, buf);
|
/sssd-io/src/providers/ldap/ |
H A D | sdap_child_helpers.c | 154 struct io_buffer *buf; local 157 buf = talloc(mem_ctx, struct io_buffer); 158 if (buf == NULL) { 163 buf->size = 6 * sizeof(uint32_t); 165 buf->size += strlen(realm_str); 168 buf->size += strlen(princ_str); 171 buf->size += strlen(keytab_name); 174 DEBUG(SSSDBG_TRACE_FUNC, "buffer size: %zu\n", buf->size); 176 buf->data = talloc_size(buf, bu 222 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 272 uint8_t *buf; member in struct:sdap_get_tgt_state 293 struct io_buffer *buf; local [all...] |
/sssd-io/src/responder/common/ |
H A D | responder_packet.c | 181 void *buf; local 185 buf = (uint8_t *)packet->buffer + packet->iop; 195 rb = recv(fd, buf, len, 0); 246 void *buf; local 253 buf = packet->buffer + packet->iop; 257 rb = send(fd, buf, len, 0);
|
/sssd-io/src/sss_client/autofs/ |
H A D | sss_autofs.c | 358 char *buf; local 431 buf = malloc(vallen); 432 if (!buf) { 437 safealign_memcpy(buf, repbuf+rp, vallen, &rp); 438 *value = buf;
|
/sssd-io/src/sss_client/idmap/ |
H A D | sss_nss_idmap.c | 93 static int buf_to_name_type_list(uint8_t *buf, size_t buf_len, uint32_t num, argument 115 SAFEALIGN_COPY_UINT32(&(t[c]), buf + rp, &rp); 116 n[c] = strdup((char *) buf + rp); 138 static int buf_to_kv_list(uint8_t *buf, size_t buf_len, argument 148 if (buf[c] == '\0') { 163 p = buf; 171 p = memchr(p, '\0', buf_len - (p - buf)); 184 p = memchr(p, '\0', buf_len - (p - buf));
|