Searched refs:iobuf (Results 1 - 4 of 4) sorted by relevance

/sssd-io/src/util/
H A Dsss_iobuf.c7 * @brief The iobuf structure that holds the data, its capacity and
25 struct sss_iobuf *iobuf; local
28 iobuf = talloc_zero(mem_ctx, struct sss_iobuf);
29 if (iobuf == NULL) {
33 buf = talloc_zero_array(iobuf, uint8_t, size);
35 talloc_free(iobuf);
43 iobuf->data = buf;
44 iobuf->size = size;
45 iobuf->capacity = capacity;
46 iobuf
55 struct sss_iobuf *iobuf; local
69 sss_iobuf_get_len(struct sss_iobuf *iobuf) argument
78 sss_iobuf_get_capacity(struct sss_iobuf *iobuf) argument
87 sss_iobuf_get_size(struct sss_iobuf *iobuf) argument
96 sss_iobuf_get_data(struct sss_iobuf *iobuf) argument
105 iobuf_get_len(struct sss_iobuf *iobuf) argument
114 ensure_bytes(struct sss_iobuf *iobuf, size_t nbytes) argument
158 iobuf_ptr(struct sss_iobuf *iobuf) argument
163 sss_iobuf_read(struct sss_iobuf *iobuf, size_t len, uint8_t *_buf, size_t *_read) argument
187 sss_iobuf_read_len(struct sss_iobuf *iobuf, size_t len, uint8_t *_buf) argument
206 sss_iobuf_write_len(struct sss_iobuf *iobuf, uint8_t *buf, size_t len) argument
226 sss_iobuf_read_uint32(struct sss_iobuf *iobuf, uint32_t *_val) argument
234 sss_iobuf_read_int32(struct sss_iobuf *iobuf, int32_t *_val) argument
242 sss_iobuf_write_uint32(struct sss_iobuf *iobuf, uint32_t val) argument
256 sss_iobuf_write_int32(struct sss_iobuf *iobuf, int32_t val) argument
270 sss_iobuf_read_stringz(struct sss_iobuf *iobuf, const char **_out) argument
301 sss_iobuf_write_stringz(struct sss_iobuf *iobuf, const char *str) argument
[all...]
H A Dsss_iobuf.h15 * @param[in] mem_ctx The talloc context that owns the iobuf
20 * @param[in] mem_ctx The talloc context that owns the iobuf
39 * The iobuf does not assume ownership of the data buffer in talloc terms,
42 * @param[in] mem_ctx The talloc context that owns the iobuf
44 * data is copied into the iobuf-owned buffer.
54 * @brief Returns the number of bytes currently stored in the iobuf
58 size_t sss_iobuf_get_len(struct sss_iobuf *iobuf);
66 size_t sss_iobuf_get_capacity(struct sss_iobuf *iobuf);
71 size_t sss_iobuf_get_size(struct sss_iobuf *iobuf);
76 uint8_t *sss_iobuf_get_data(struct sss_iobuf *iobuf);
[all...]
H A Dsss_krb5.c1140 static errno_t iobuf_read_uint32be(struct sss_iobuf *iobuf, argument
1146 ret = sss_iobuf_read_uint32(iobuf, &beval);
1155 static errno_t iobuf_write_uint32be(struct sss_iobuf *iobuf, argument
1161 return sss_iobuf_write_uint32(iobuf, beval);
1165 struct sss_iobuf *iobuf,
1173 ret = iobuf_read_uint32be(iobuf, &nbytes);
1183 ret = sss_iobuf_read_len(iobuf, nbytes, bytes);
1195 struct sss_iobuf *iobuf,
1202 ret = iobuf_get_len_bytes(mem_ctx, iobuf, &nbytes, &bytes);
1213 static errno_t set_krb5_data(struct sss_iobuf *iobuf, argument
1164 iobuf_get_len_bytes(TALLOC_CTX *mem_ctx, struct sss_iobuf *iobuf, uint32_t *_nbytes, uint8_t **_bytes) argument
1194 get_krb5_data(TALLOC_CTX *mem_ctx, struct sss_iobuf *iobuf, krb5_data *k5data) argument
1236 sss_krb5_unmarshal_princ(TALLOC_CTX *mem_ctx, struct sss_iobuf *iobuf, krb5_principal *_princ) argument
1301 sss_krb5_marshal_princ(krb5_principal princ, struct sss_iobuf *iobuf) argument
[all...]
H A Dsss_krb5.h192 struct sss_iobuf *iobuf);
195 struct sss_iobuf *iobuf,

Completed in 17 milliseconds