diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libssl/tls13_internal.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index 83f9988140..872aced77c 100644 --- a/src/lib/libssl/tls13_internal.h +++ b/src/lib/libssl/tls13_internal.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls13_internal.h,v 1.5 2018/11/09 23:56:20 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.6 2019/01/17 06:32:12 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> |
4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
@@ -21,8 +21,27 @@ | |||
21 | 21 | ||
22 | #include <openssl/evp.h> | 22 | #include <openssl/evp.h> |
23 | 23 | ||
24 | #include "bytestring.h" | ||
25 | |||
24 | __BEGIN_HIDDEN_DECLS | 26 | __BEGIN_HIDDEN_DECLS |
25 | 27 | ||
28 | #define TLS13_IO_EOF 0 | ||
29 | #define TLS13_IO_FAILURE -1 | ||
30 | #define TLS13_IO_WANT_POLLIN -2 | ||
31 | #define TLS13_IO_WANT_POLLOUT -3 | ||
32 | |||
33 | typedef ssize_t (*tls13_read_cb)(void *_buf, size_t _buflen, void *_cb_arg); | ||
34 | typedef ssize_t (*tls13_write_cb)(const void *_buf, size_t _buflen, void *_cb_arg); | ||
35 | |||
36 | struct tls13_buffer; | ||
37 | |||
38 | struct tls13_buffer *tls13_buffer_new(size_t init_size); | ||
39 | void tls13_buffer_free(struct tls13_buffer *buf); | ||
40 | ssize_t tls13_buffer_extend(struct tls13_buffer *buf, size_t len, | ||
41 | tls13_read_cb read_cb, void *cb_arg); | ||
42 | void tls13_buffer_cbs(struct tls13_buffer *buf, CBS *cbs); | ||
43 | int tls13_buffer_finish(struct tls13_buffer *buf, uint8_t **out, size_t *out_len); | ||
44 | |||
26 | struct tls13_secret { | 45 | struct tls13_secret { |
27 | uint8_t *data; | 46 | uint8_t *data; |
28 | size_t len; | 47 | size_t len; |