1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-07 06:42:56 +03:00

Defragment incoming TLS handshake messages

Signed-off-by: Deomid rojer Ryabkov <rojer@rojer.me>
This commit is contained in:
Deomid rojer Ryabkov
2024-03-10 02:11:03 +00:00
parent e457bf1c62
commit ac2cf1f26c
5 changed files with 113 additions and 15 deletions

View File

@@ -1808,6 +1808,8 @@ struct mbedtls_ssl_context {
size_t MBEDTLS_PRIVATE(in_hslen); /*!< current handshake message length,
including the handshake header */
unsigned char *MBEDTLS_PRIVATE(in_hshdr); /*!< original handshake header start */
size_t MBEDTLS_PRIVATE(in_hsfraglen); /*!< accumulated hs fragments length */
int MBEDTLS_PRIVATE(nb_zero); /*!< # of 0-length encrypted messages */
int MBEDTLS_PRIVATE(keep_current_message); /*!< drop or reuse current message