/sssd/src/util/crypto/ |
H A D | sss_crypto.c | 25 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 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 | 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); 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 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 | 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/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_passwd.c | 73 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 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
|
/sssd/src/tests/cmocka/ |
H A D | dummy_child.c | 41 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 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);
|
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/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/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/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/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[ 198 uint8_t *buf = NULL; local [all...] |
/sssd/src/sss_client/idmap/ |
H A D | sss_nss_idmap.c | 75 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 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/src/p11_child/ |
H A D | p11_child_nss.c | 454 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 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/src/providers/ldap/ |
H A D | sdap_child_helpers.c | 153 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 D | responder_packet.c | 181 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 D | pamsrv_p11.c | 87 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 D | fail_over-tests.c | 114 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...] |