1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
Commit Graph

7 Commits

Author SHA1 Message Date
tb
8e5190a0f2 Of course libssl also has a few missing void
From Christian Andersen
2024-02-04 20:50:23 +00:00
jsing
24c399e99a Add read and write support to tls_buffer.
tls_buffer was original created for a specific use case, namely reading in
length prefixed messages. This adds read and write support, along with a
capacity limit, allowing it to be used in additional use cases.

ok beck@ tb@
2022-07-22 19:33:53 +00:00
jsing
fc718d1d88 Remove tls_buffer_set_data() and remove/revise callers.
There is no way that tls_buffer_set_data() can currently work in
conjunction with tls_buffer_expand(). This fact is currently hidden by the
way that PHH works, which reads the same data from the record layer (which
it needs to do anyway, since we may not have all of the handshake message
in a single record).

Since this is broken, mop it up and change the PHH callback to not provide
the record data.

ok beck@ tb@
2022-07-20 06:32:24 +00:00
jsing
f6184395af Rename tls13_buffer to tls_buffer.
This code will soon be used in the DTLSv1.2 and TLSv1.2 stack. Also
introduce tls_internal.h and move/rename the read/write/flush callbacks.

ok beck@ tb@
2021-10-23 13:12:14 +00:00
jsing
554b474202 Avoid pulling ssl_locl.h into self-contained code. 2021-05-16 14:19:04 +00:00
beck
7d42f7619b Add accessors to change the buffer in a handshake message.
Needed for doing TLS 1.3 Post Handshake Handshake messages.

ok jsing@
2019-11-20 16:21:20 +00:00
jsing
9673436ac8 Provide a handshake message handling implementation for TLS 1.3.
It receives handshake messages by reading and parsing data from the record
layer. It also provides support for building and sending handshake
messages.

ok tb@
2019-01-20 12:27:34 +00:00