diff options
| author | beck <> | 2019-11-20 16:21:20 +0000 |
|---|---|---|
| committer | beck <> | 2019-11-20 16:21:20 +0000 |
| commit | c8e4e0dd743890730bad0c188b6c3c8f875e4f34 (patch) | |
| tree | 62957791149c439c8314612525488b6e16952e26 /src/lib/libssl/tls13_internal.h | |
| parent | 443b372c06e5f8ab35b4b1840f242c4eead73b0b (diff) | |
| download | openbsd-c8e4e0dd743890730bad0c188b6c3c8f875e4f34.tar.gz openbsd-c8e4e0dd743890730bad0c188b6c3c8f875e4f34.tar.bz2 openbsd-c8e4e0dd743890730bad0c188b6c3c8f875e4f34.zip | |
Add accessors to change the buffer in a handshake message.
Needed for doing TLS 1.3 Post Handshake Handshake messages.
ok jsing@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/tls13_internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index 03e75933a1..859030747f 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.34 2019/11/18 15:25:59 beck Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.35 2019/11/20 16:21:20 beck 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> |
| @@ -47,6 +47,7 @@ typedef ssize_t (*tls13_write_cb)(const void *_buf, size_t _buflen, | |||
| 47 | struct tls13_buffer; | 47 | struct tls13_buffer; |
| 48 | 48 | ||
| 49 | struct tls13_buffer *tls13_buffer_new(size_t init_size); | 49 | struct tls13_buffer *tls13_buffer_new(size_t init_size); |
| 50 | int tls13_buffer_set_data(struct tls13_buffer *buf, CBS *data); | ||
| 50 | void tls13_buffer_free(struct tls13_buffer *buf); | 51 | void tls13_buffer_free(struct tls13_buffer *buf); |
| 51 | ssize_t tls13_buffer_extend(struct tls13_buffer *buf, size_t len, | 52 | ssize_t tls13_buffer_extend(struct tls13_buffer *buf, size_t len, |
| 52 | tls13_read_cb read_cb, void *cb_arg); | 53 | tls13_read_cb read_cb, void *cb_arg); |
| @@ -141,6 +142,7 @@ struct tls13_handshake_msg; | |||
| 141 | struct tls13_handshake_msg *tls13_handshake_msg_new(void); | 142 | struct tls13_handshake_msg *tls13_handshake_msg_new(void); |
| 142 | void tls13_handshake_msg_free(struct tls13_handshake_msg *msg); | 143 | void tls13_handshake_msg_free(struct tls13_handshake_msg *msg); |
| 143 | void tls13_handshake_msg_data(struct tls13_handshake_msg *msg, CBS *cbs); | 144 | void tls13_handshake_msg_data(struct tls13_handshake_msg *msg, CBS *cbs); |
| 145 | int tls13_handshake_msg_set_buffer(struct tls13_handshake_msg *msg, CBS *cbs); | ||
| 144 | uint8_t tls13_handshake_msg_type(struct tls13_handshake_msg *msg); | 146 | uint8_t tls13_handshake_msg_type(struct tls13_handshake_msg *msg); |
| 145 | int tls13_handshake_msg_content(struct tls13_handshake_msg *msg, CBS *cbs); | 147 | int tls13_handshake_msg_content(struct tls13_handshake_msg *msg, CBS *cbs); |
| 146 | int tls13_handshake_msg_start(struct tls13_handshake_msg *msg, CBB *body, | 148 | int tls13_handshake_msg_start(struct tls13_handshake_msg *msg, CBB *body, |
