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/tls_internal.h | |
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 '')
-rw-r--r-- | src/lib/libssl/tls_internal.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libssl/tls_internal.h b/src/lib/libssl/tls_internal.h index 0065f0f39f..ac2d14da48 100644 --- a/src/lib/libssl/tls_internal.h +++ b/src/lib/libssl/tls_internal.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_internal.h,v 1.6 2022/06/29 08:27:51 tb Exp $ */ | 1 | /* $OpenBSD: tls_internal.h,v 1.7 2022/07/20 06:32:24 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018, 2019, 2021 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018, 2019, 2021 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -47,7 +47,6 @@ typedef ssize_t (*tls_flush_cb)(void *_cb_arg); | |||
47 | struct tls_buffer; | 47 | struct tls_buffer; |
48 | 48 | ||
49 | struct tls_buffer *tls_buffer_new(size_t init_size); | 49 | struct tls_buffer *tls_buffer_new(size_t init_size); |
50 | int tls_buffer_set_data(struct tls_buffer *buf, CBS *data); | ||
51 | void tls_buffer_free(struct tls_buffer *buf); | 50 | void tls_buffer_free(struct tls_buffer *buf); |
52 | ssize_t tls_buffer_extend(struct tls_buffer *buf, size_t len, | 51 | ssize_t tls_buffer_extend(struct tls_buffer *buf, size_t len, |
53 | tls_read_cb read_cb, void *cb_arg); | 52 | tls_read_cb read_cb, void *cb_arg); |