diff options
author | jsing <> | 2022-07-20 06:32:24 +0000 |
---|---|---|
committer | jsing <> | 2022-07-20 06:32:24 +0000 |
commit | ccb4f685d743447d79e76e1380f93ba28b5b8e1e (patch) | |
tree | 71c8f3c98cc3af4e296c929982738339c5534368 /src/lib/libssl/tls13_handshake_msg.c | |
parent | 65be960bd3c39cb5e24e7479f7f1dfd10d8c6f69 (diff) | |
download | openbsd-ccb4f685d743447d79e76e1380f93ba28b5b8e1e.tar.gz openbsd-ccb4f685d743447d79e76e1380f93ba28b5b8e1e.tar.bz2 openbsd-ccb4f685d743447d79e76e1380f93ba28b5b8e1e.zip |
Remove tls_buffer_set_data() and remove/revise callers.
There is no way that tls_buffer_set_data() can currently work in
conjunction with tls_buffer_expand(). This fact is currently hidden by the
way that PHH works, which reads the same data from the record layer (which
it needs to do anyway, since we may not have all of the handshake message
in a single record).
Since this is broken, mop it up and change the PHH callback to not provide
the record data.
ok beck@ tb@
Diffstat (limited to 'src/lib/libssl/tls13_handshake_msg.c')
-rw-r--r-- | src/lib/libssl/tls13_handshake_msg.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/libssl/tls13_handshake_msg.c b/src/lib/libssl/tls13_handshake_msg.c index 67eab3152f..946ccaccd6 100644 --- a/src/lib/libssl/tls13_handshake_msg.c +++ b/src/lib/libssl/tls13_handshake_msg.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls13_handshake_msg.c,v 1.4 2021/10/23 13:12:14 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_handshake_msg.c,v 1.5 2022/07/20 06:32:24 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -71,12 +71,6 @@ tls13_handshake_msg_data(struct tls13_handshake_msg *msg, CBS *cbs) | |||
71 | CBS_init(cbs, msg->data, msg->data_len); | 71 | CBS_init(cbs, msg->data, msg->data_len); |
72 | } | 72 | } |
73 | 73 | ||
74 | int | ||
75 | tls13_handshake_msg_set_buffer(struct tls13_handshake_msg *msg, CBS *cbs) | ||
76 | { | ||
77 | return tls_buffer_set_data(msg->buf, cbs); | ||
78 | } | ||
79 | |||
80 | uint8_t | 74 | uint8_t |
81 | tls13_handshake_msg_type(struct tls13_handshake_msg *msg) | 75 | tls13_handshake_msg_type(struct tls13_handshake_msg *msg) |
82 | { | 76 | { |