summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
authorbeck <>2019-11-20 16:21:20 +0000
committerbeck <>2019-11-20 16:21:20 +0000
commitf3053a044b26a9a6c7c7edb6783003483d758112 (patch)
tree62957791149c439c8314612525488b6e16952e26 /src/lib/libssl/tls13_internal.h
parent8909ea7f4f944f44def6cd61712e2334067501cb (diff)
downloadopenbsd-f3053a044b26a9a6c7c7edb6783003483d758112.tar.gz
openbsd-f3053a044b26a9a6c7c7edb6783003483d758112.tar.bz2
openbsd-f3053a044b26a9a6c7c7edb6783003483d758112.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 'src/lib/libssl/tls13_internal.h')
-rw-r--r--src/lib/libssl/tls13_internal.h4
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,
47struct tls13_buffer; 47struct tls13_buffer;
48 48
49struct tls13_buffer *tls13_buffer_new(size_t init_size); 49struct tls13_buffer *tls13_buffer_new(size_t init_size);
50int tls13_buffer_set_data(struct tls13_buffer *buf, CBS *data);
50void tls13_buffer_free(struct tls13_buffer *buf); 51void tls13_buffer_free(struct tls13_buffer *buf);
51ssize_t tls13_buffer_extend(struct tls13_buffer *buf, size_t len, 52ssize_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;
141struct tls13_handshake_msg *tls13_handshake_msg_new(void); 142struct tls13_handshake_msg *tls13_handshake_msg_new(void);
142void tls13_handshake_msg_free(struct tls13_handshake_msg *msg); 143void tls13_handshake_msg_free(struct tls13_handshake_msg *msg);
143void tls13_handshake_msg_data(struct tls13_handshake_msg *msg, CBS *cbs); 144void tls13_handshake_msg_data(struct tls13_handshake_msg *msg, CBS *cbs);
145int tls13_handshake_msg_set_buffer(struct tls13_handshake_msg *msg, CBS *cbs);
144uint8_t tls13_handshake_msg_type(struct tls13_handshake_msg *msg); 146uint8_t tls13_handshake_msg_type(struct tls13_handshake_msg *msg);
145int tls13_handshake_msg_content(struct tls13_handshake_msg *msg, CBS *cbs); 147int tls13_handshake_msg_content(struct tls13_handshake_msg *msg, CBS *cbs);
146int tls13_handshake_msg_start(struct tls13_handshake_msg *msg, CBB *body, 148int tls13_handshake_msg_start(struct tls13_handshake_msg *msg, CBB *body,