1
0
mirror of https://github.com/ARMmbed/mbedtls.git synced 2025-06-10 08:18:47 +08:00
Hanno Becker b03f88f06c Introduce helper for handling of post-handshake handshake messages
Handling the receipt of a handshake record after the initial handshake
requires non-trivial logic depending on the protocol version and the
endpoint. This logic is currently embedded in mbedtls_ssl_read().

With the introduction of support for [D]TLS 1.3, the logic will become
even more complex, since [D]TLS 1.3 drops support for renegotiation --
which in [D]TLS 1.2 is the main purpose of post-handshake handshake
messages -- but instead introduces numerous other post-handshake
handshake messages.

In order to pave the way for those changes, this commit improves
readability and maintainability of mbedtls_ssl_read() by moving
the TLS <=1.2 logic for handling post-handshake handshake messages
into a separate helper function ssl_handle_hs_message_post_handshake().

The logic of the code is entirely unchanged.

Signed-off-by: Hanno Becker <hanno.becker@arm.com>
2021-05-01 06:17:49 +01:00
..
2021-03-10 12:52:37 +00:00
2021-03-10 12:52:37 +00:00
2021-03-10 12:52:37 +00:00
2021-03-04 14:34:50 +00:00
2021-03-10 12:52:37 +00:00
2021-04-21 11:05:00 +02:00
2021-04-15 11:19:47 +01:00
2021-04-15 11:19:47 +01:00
2021-03-10 12:52:37 +00:00
2021-04-09 15:46:51 +02:00
2021-03-10 12:52:37 +00:00
2021-04-21 11:05:00 +02:00
2021-04-07 12:45:35 +01:00
2021-03-29 14:20:18 +01:00
2021-04-07 12:45:35 +01:00
2021-03-29 14:20:18 +01:00
2021-04-07 12:45:35 +01:00
2021-04-07 12:45:35 +01:00
2021-04-27 17:20:56 +01:00
2021-03-10 12:52:37 +00:00
2021-03-10 12:52:37 +00:00
2021-04-15 11:19:47 +01:00
2021-04-15 11:19:47 +01:00
2021-04-15 11:19:47 +01:00
2020-11-25 13:10:50 +01:00
2020-11-25 13:10:50 +01:00