diff options
author | 2019-11-20 16:21:20 +0000 | |
---|---|---|
committer | 2019-11-20 16:21:20 +0000 | |
commit | 7d42f7619b7ab62ae6563e52a49087db702d641f (patch) | |
tree | 3de7103990321bd11e16ba7e62faf1bb22735055 /lib/libssl/tls13_handshake_msg.c | |
parent | Correctly match another 9560-based device. (diff) | |
download | wireguard-openbsd-7d42f7619b7ab62ae6563e52a49087db702d641f.tar.xz wireguard-openbsd-7d42f7619b7ab62ae6563e52a49087db702d641f.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 'lib/libssl/tls13_handshake_msg.c')
-rw-r--r-- | lib/libssl/tls13_handshake_msg.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libssl/tls13_handshake_msg.c b/lib/libssl/tls13_handshake_msg.c index f85271a537c..21932fc4eef 100644 --- a/lib/libssl/tls13_handshake_msg.c +++ b/lib/libssl/tls13_handshake_msg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_handshake_msg.c,v 1.1 2019/01/20 12:27:34 jsing Exp $ */ +/* $OpenBSD: tls13_handshake_msg.c,v 1.2 2019/11/20 16:21:20 beck Exp $ */ /* * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> * @@ -72,6 +72,12 @@ tls13_handshake_msg_data(struct tls13_handshake_msg *msg, CBS *cbs) CBS_init(cbs, msg->data, msg->data_len); } +int +tls13_handshake_msg_set_buffer(struct tls13_handshake_msg *msg, CBS *cbs) +{ + return tls13_buffer_set_data(msg->buf, cbs); +} + uint8_t tls13_handshake_msg_type(struct tls13_handshake_msg *msg) { |