diff options
author | jsing <> | 2022-11-11 17:15:27 +0000 |
---|---|---|
committer | jsing <> | 2022-11-11 17:15:27 +0000 |
commit | 167103faa44f8407455f11f6599e9919e2b22653 (patch) | |
tree | a8f8e94c51cf1dc74d90e267faf0ad4720537e35 /src/lib/libssl/tls_content.h | |
parent | f8749b129444d560b9e645a68ec7b045800243ed (diff) | |
download | openbsd-167103faa44f8407455f11f6599e9919e2b22653.tar.gz openbsd-167103faa44f8407455f11f6599e9919e2b22653.tar.bz2 openbsd-167103faa44f8407455f11f6599e9919e2b22653.zip |
Convert the legacy TLS stack to tls_content.
This converts the legacy TLS stack to tls_content - records are now
opened into a tls_content structure, rather than being written back into
the same buffer that the sealed record was read into.
This will allow for further clean up of the legacy record layer.
ok tb@
Diffstat (limited to 'src/lib/libssl/tls_content.h')
-rw-r--r-- | src/lib/libssl/tls_content.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libssl/tls_content.h b/src/lib/libssl/tls_content.h index 173af2a740..b807248f60 100644 --- a/src/lib/libssl/tls_content.h +++ b/src/lib/libssl/tls_content.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_content.h,v 1.1 2021/09/04 16:26:12 jsing Exp $ */ | 1 | /* $OpenBSD: tls_content.h,v 1.2 2022/11/11 17:15:27 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2020 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2020 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -38,6 +38,8 @@ int tls_content_dup_data(struct tls_content *content, uint8_t type, | |||
38 | const uint8_t *data, size_t data_len); | 38 | const uint8_t *data, size_t data_len); |
39 | void tls_content_set_data(struct tls_content *content, uint8_t type, | 39 | void tls_content_set_data(struct tls_content *content, uint8_t type, |
40 | const uint8_t *data, size_t data_len); | 40 | const uint8_t *data, size_t data_len); |
41 | int tls_content_set_bounds(struct tls_content *content, size_t offset, | ||
42 | size_t len); | ||
41 | void tls_content_set_epoch(struct tls_content *content, uint16_t epoch); | 43 | void tls_content_set_epoch(struct tls_content *content, uint16_t epoch); |
42 | 44 | ||
43 | ssize_t tls_content_peek(struct tls_content *content, uint8_t *buf, size_t n); | 45 | ssize_t tls_content_peek(struct tls_content *content, uint8_t *buf, size_t n); |