summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
authorjsing <>2021-09-04 16:26:12 +0000
committerjsing <>2021-09-04 16:26:12 +0000
commitfb975bbc325bbf4283ef4fa3886bde95fe20607e (patch)
tree44332845387994e621a09d6d1451fd9e6a3c865d /src/lib/libssl/tls13_internal.h
parent9b575c8e2dbc619f0deaa20ee65a0cecab639c84 (diff)
downloadopenbsd-fb975bbc325bbf4283ef4fa3886bde95fe20607e.tar.gz
openbsd-fb975bbc325bbf4283ef4fa3886bde95fe20607e.tar.bz2
openbsd-fb975bbc325bbf4283ef4fa3886bde95fe20607e.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.h4
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(
209void tls13_record_layer_free(struct tls13_record_layer *rl); 209void tls13_record_layer_free(struct tls13_record_layer *rl);
210void tls13_record_layer_allow_ccs(struct tls13_record_layer *rl, int allow); 210void tls13_record_layer_allow_ccs(struct tls13_record_layer *rl, int allow);
211void tls13_record_layer_allow_legacy_alerts(struct tls13_record_layer *rl, int allow); 211void tls13_record_layer_allow_legacy_alerts(struct tls13_record_layer *rl, int allow);
212void tls13_record_layer_rbuf(struct tls13_record_layer *rl, CBS *cbs); 212void tls13_record_layer_rcontent(struct tls13_record_layer *rl, CBS *cbs);
213void tls13_record_layer_set_aead(struct tls13_record_layer *rl, 213void tls13_record_layer_set_aead(struct tls13_record_layer *rl,
214 const EVP_AEAD *aead); 214 const EVP_AEAD *aead);
215void tls13_record_layer_set_hash(struct tls13_record_layer *rl, 215void tls13_record_layer_set_hash(struct tls13_record_layer *rl,