mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
ssl_client.c: Expand ssl_write_client_hello_body doc with TLS 1.2 case
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
@ -174,7 +174,7 @@ static int ssl_write_client_hello_cipher_suites(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Structure of ClientHello message:
|
* Structure of the TLS 1.3 ClientHello message:
|
||||||
*
|
*
|
||||||
* struct {
|
* struct {
|
||||||
* ProtocolVersion legacy_version = 0x0303; // TLS v1.2
|
* ProtocolVersion legacy_version = 0x0303; // TLS v1.2
|
||||||
@ -184,6 +184,23 @@ static int ssl_write_client_hello_cipher_suites(
|
|||||||
* opaque legacy_compression_methods<1..2^8-1>;
|
* opaque legacy_compression_methods<1..2^8-1>;
|
||||||
* Extension extensions<8..2^16-1>;
|
* Extension extensions<8..2^16-1>;
|
||||||
* } ClientHello;
|
* } ClientHello;
|
||||||
|
*
|
||||||
|
* Structure of the (D)TLS 1.2 ClientHello message:
|
||||||
|
*
|
||||||
|
* struct {
|
||||||
|
* ProtocolVersion client_version;
|
||||||
|
* Random random;
|
||||||
|
* SessionID session_id;
|
||||||
|
* opaque cookie<0..2^8-1>; // DTLS 1.2 ONLY
|
||||||
|
* CipherSuite cipher_suites<2..2^16-2>;
|
||||||
|
* CompressionMethod compression_methods<1..2^8-1>;
|
||||||
|
* select (extensions_present) {
|
||||||
|
* case false:
|
||||||
|
* struct {};
|
||||||
|
* case true:
|
||||||
|
* Extension extensions<0..2^16-1>;
|
||||||
|
* };
|
||||||
|
* } ClientHello;
|
||||||
*/
|
*/
|
||||||
static int ssl_write_client_hello_body( mbedtls_ssl_context *ssl,
|
static int ssl_write_client_hello_body( mbedtls_ssl_context *ssl,
|
||||||
unsigned char *buf,
|
unsigned char *buf,
|
||||||
|
Reference in New Issue
Block a user