diff options
author | jsing <> | 2022-11-10 18:06:37 +0000 |
---|---|---|
committer | jsing <> | 2022-11-10 18:06:37 +0000 |
commit | 89b5796e48ebf1a65b490024b25e1111aaa5d4e3 (patch) | |
tree | 1c172cf5ae25ab26fa6f64cb114505e1bfcc1267 /src/lib/libssl/tls_internal.h | |
parent | 9a85a413c50cb23ce2475f47d9c284f7010bae36 (diff) | |
download | openbsd-89b5796e48ebf1a65b490024b25e1111aaa5d4e3.tar.gz openbsd-89b5796e48ebf1a65b490024b25e1111aaa5d4e3.tar.bz2 openbsd-89b5796e48ebf1a65b490024b25e1111aaa5d4e3.zip |
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@
Diffstat (limited to 'src/lib/libssl/tls_internal.h')
-rw-r--r-- | src/lib/libssl/tls_internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ | |||
1 | /* $OpenBSD: tls_internal.h,v 1.9 2022/07/24 14:28:16 jsing Exp $ */ | 1 | /* $OpenBSD: tls_internal.h,v 1.10 2022/11/10 18:06:37 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 | * |
@@ -64,6 +64,7 @@ void tls_buffer_free(struct tls_buffer *buf); | |||
64 | void tls_buffer_set_capacity_limit(struct tls_buffer *buf, size_t limit); | 64 | void tls_buffer_set_capacity_limit(struct tls_buffer *buf, size_t limit); |
65 | ssize_t tls_buffer_extend(struct tls_buffer *buf, size_t len, | 65 | ssize_t tls_buffer_extend(struct tls_buffer *buf, size_t len, |
66 | tls_read_cb read_cb, void *cb_arg); | 66 | tls_read_cb read_cb, void *cb_arg); |
67 | size_t tls_buffer_remaining(struct tls_buffer *buf); | ||
67 | ssize_t tls_buffer_read(struct tls_buffer *buf, uint8_t *rbuf, size_t n); | 68 | ssize_t tls_buffer_read(struct tls_buffer *buf, uint8_t *rbuf, size_t n); |
68 | ssize_t tls_buffer_write(struct tls_buffer *buf, const uint8_t *wbuf, size_t n); | 69 | ssize_t tls_buffer_write(struct tls_buffer *buf, const uint8_t *wbuf, size_t n); |
69 | int tls_buffer_append(struct tls_buffer *buf, const uint8_t *wbuf, size_t n); | 70 | int tls_buffer_append(struct tls_buffer *buf, const uint8_t *wbuf, size_t n); |