summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
authorjsing <>2020-01-21 12:08:04 +0000
committerjsing <>2020-01-21 12:08:04 +0000
commit6e568c664abbc564bc3a97d549d37155632d79a5 (patch)
treeddf5742f7e036ce4aa194b92e0b226d1ae3f9564 /src/lib/libssl/tls13_internal.h
parent59792af6ba04f21a2d45c97fccc72ac33f22cc48 (diff)
downloadopenbsd-6e568c664abbc564bc3a97d549d37155632d79a5.tar.gz
openbsd-6e568c664abbc564bc3a97d549d37155632d79a5.tar.bz2
openbsd-6e568c664abbc564bc3a97d549d37155632d79a5.zip
Correct legacy fallback for TLSv1.3 client.
When falling back to the legacy TLS client, in the case where a server has sent a TLS record that contains more than one handshake message, we also need to stash the unprocessed record data for later processing. Otherwise we end up with missing handshake data. ok beck@ tb@
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r--src/lib/libssl/tls13_internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h
index 530ace41af..3ee73782ec 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.38 2020/01/21 03:40:05 beck Exp $ */ 1/* $OpenBSD: tls13_internal.h,v 1.39 2020/01/21 12:08:04 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>
@@ -116,6 +116,7 @@ struct tls13_record_layer *tls13_record_layer_new(tls13_read_cb wire_read,
116 tls13_phh_recv_cb phh_recv_cb, 116 tls13_phh_recv_cb phh_recv_cb,
117 tls13_phh_sent_cb phh_sent_cb, void *cb_arg); 117 tls13_phh_sent_cb phh_sent_cb, void *cb_arg);
118void tls13_record_layer_free(struct tls13_record_layer *rl); 118void tls13_record_layer_free(struct tls13_record_layer *rl);
119void tls13_record_layer_rbuf(struct tls13_record_layer *rl, CBS *cbs);
119void tls13_record_layer_set_aead(struct tls13_record_layer *rl, 120void tls13_record_layer_set_aead(struct tls13_record_layer *rl,
120 const EVP_AEAD *aead); 121 const EVP_AEAD *aead);
121void tls13_record_layer_set_hash(struct tls13_record_layer *rl, 122void tls13_record_layer_set_hash(struct tls13_record_layer *rl,