From 3fbacf810de490214fc4dba0b34a532906eadfac Mon Sep 17 00:00:00 2001 From: jsing <> Date: Thu, 10 Nov 2022 18:06:37 +0000 Subject: Use tls_buffer for alert and handshake fragments in the legacy stack. This avoids a bunch of pointer munging and a handrolled memmove. ok tb@ --- src/lib/libssl/tls_internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/libssl/tls_internal.h') diff --git a/src/lib/libssl/tls_internal.h b/src/lib/libssl/tls_internal.h index 1d3a8133cd..84edde8474 100644 --- a/src/lib/libssl/tls_internal.h +++ b/src/lib/libssl/tls_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_internal.h,v 1.9 2022/07/24 14:28:16 jsing Exp $ */ +/* $OpenBSD: tls_internal.h,v 1.10 2022/11/10 18:06:37 jsing Exp $ */ /* * Copyright (c) 2018, 2019, 2021 Joel Sing * @@ -64,6 +64,7 @@ void tls_buffer_free(struct tls_buffer *buf); void tls_buffer_set_capacity_limit(struct tls_buffer *buf, size_t limit); ssize_t tls_buffer_extend(struct tls_buffer *buf, size_t len, tls_read_cb read_cb, void *cb_arg); +size_t tls_buffer_remaining(struct tls_buffer *buf); ssize_t tls_buffer_read(struct tls_buffer *buf, uint8_t *rbuf, size_t n); ssize_t tls_buffer_write(struct tls_buffer *buf, const uint8_t *wbuf, size_t n); int tls_buffer_append(struct tls_buffer *buf, const uint8_t *wbuf, size_t n); -- cgit v1.2.3-55-g6feb