mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
TLS1.3: Add useful comments based on RFC8446
Signed-off-by: XiaokangQian <xiaokang.qian@arm.com>
This commit is contained in:
@ -51,6 +51,13 @@ int mbedtls_ssl_tls1_3_fetch_handshake_msg( mbedtls_ssl_context *ssl,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Jump handshake header (4 bytes, see Section 4 of RFC 8446).
|
||||||
|
* ...
|
||||||
|
* HandshakeType msg_type;
|
||||||
|
* uint24 length;
|
||||||
|
* ...
|
||||||
|
*/
|
||||||
*buf = ssl->in_msg + 4;
|
*buf = ssl->in_msg + 4;
|
||||||
*buflen = ssl->in_hslen - 4;
|
*buflen = ssl->in_hslen - 4;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user