Lines Matching refs:tls_buffer
26 struct tls_buffer { struct
34 static int tls_buffer_resize(struct tls_buffer *buf, size_t capacity); argument
36 struct tls_buffer *
39 struct tls_buffer *buf = NULL; in tls_buffer_new()
41 if ((buf = calloc(1, sizeof(struct tls_buffer))) == NULL) in tls_buffer_new()
58 tls_buffer_clear(struct tls_buffer *buf) in tls_buffer_clear()
69 tls_buffer_free(struct tls_buffer *buf) in tls_buffer_free()
76 freezero(buf, sizeof(struct tls_buffer)); in tls_buffer_free()
80 tls_buffer_grow(struct tls_buffer *buf, size_t capacity) in tls_buffer_grow()
89 tls_buffer_resize(struct tls_buffer *buf, size_t capacity) in tls_buffer_resize()
119 tls_buffer_set_capacity_limit(struct tls_buffer *buf, size_t limit) in tls_buffer_set_capacity_limit()
129 tls_buffer_extend(struct tls_buffer *buf, size_t len, in tls_buffer_extend()
159 tls_buffer_read(struct tls_buffer *buf, uint8_t *rbuf, size_t n) in tls_buffer_read()
178 tls_buffer_write(struct tls_buffer *buf, const uint8_t *wbuf, size_t n) in tls_buffer_write()
213 tls_buffer_append(struct tls_buffer *buf, const uint8_t *wbuf, size_t n) in tls_buffer_append()
219 tls_buffer_data(struct tls_buffer *buf, CBS *out_cbs) in tls_buffer_data()
234 tls_buffer_finish(struct tls_buffer *buf, uint8_t **out, size_t *out_len) in tls_buffer_finish()