diff options
author | jsing <> | 2021-09-04 16:26:12 +0000 |
---|---|---|
committer | jsing <> | 2021-09-04 16:26:12 +0000 |
commit | cae6ba899a9344e719ed96e6afdb8958b891efb0 (patch) | |
tree | 44332845387994e621a09d6d1451fd9e6a3c865d /src/lib/libssl/tls13_internal.h | |
parent | 5f9c147b857183086592529152aa63fc86fa2e56 (diff) | |
download | openbsd-cae6ba899a9344e719ed96e6afdb8958b891efb0.tar.gz openbsd-cae6ba899a9344e719ed96e6afdb8958b891efb0.tar.bz2 openbsd-cae6ba899a9344e719ed96e6afdb8958b891efb0.zip |
Factor out the TLSv1.3 code that handles content from TLS records.
Currently, the plaintext content from opened TLS records is handled via
the rbuf code in the TLSv1.3 record layer. Factor this out and provide a
separate struct tls_content, which knows how to track and manipulate the
content.
This makes the TLSv1.3 code cleaner, however it will also soon also be used
to untangle parts of the legacy record layer.
ok beck@ tb@
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r-- | src/lib/libssl/tls13_internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index 30ef7dd931..12ed733f2b 100644 --- a/src/lib/libssl/tls13_internal.h +++ b/src/lib/libssl/tls13_internal.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls13_internal.h,v 1.90 2021/06/28 15:35:14 tb Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.91 2021/09/04 16:26:12 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> |
4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
@@ -209,7 +209,7 @@ struct tls13_record_layer *tls13_record_layer_new( | |||
209 | void tls13_record_layer_free(struct tls13_record_layer *rl); | 209 | void tls13_record_layer_free(struct tls13_record_layer *rl); |
210 | void tls13_record_layer_allow_ccs(struct tls13_record_layer *rl, int allow); | 210 | void tls13_record_layer_allow_ccs(struct tls13_record_layer *rl, int allow); |
211 | void tls13_record_layer_allow_legacy_alerts(struct tls13_record_layer *rl, int allow); | 211 | void tls13_record_layer_allow_legacy_alerts(struct tls13_record_layer *rl, int allow); |
212 | void tls13_record_layer_rbuf(struct tls13_record_layer *rl, CBS *cbs); | 212 | void tls13_record_layer_rcontent(struct tls13_record_layer *rl, CBS *cbs); |
213 | void tls13_record_layer_set_aead(struct tls13_record_layer *rl, | 213 | void tls13_record_layer_set_aead(struct tls13_record_layer *rl, |
214 | const EVP_AEAD *aead); | 214 | const EVP_AEAD *aead); |
215 | void tls13_record_layer_set_hash(struct tls13_record_layer *rl, | 215 | void tls13_record_layer_set_hash(struct tls13_record_layer *rl, |