fix type conversion issue
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
ac5ca5a0ea
commit
e01304f6d8
2 changed files with 12 additions and 3 deletions
|
@ -1137,7 +1137,12 @@ static int ssl_parse_hello_verify_request( mbedtls_ssl_context *ssl )
|
|||
{
|
||||
const unsigned char *p = ssl->in_msg + mbedtls_ssl_hs_hdr_len( ssl );
|
||||
uint16_t dtls_legacy_version;
|
||||
unsigned char cookie_len;
|
||||
|
||||
#if !defined(MBEDTLS_SSL_PROTO_TLS1_3)
|
||||
uint8_t cookie_len;
|
||||
#else
|
||||
uint16_t cookie_len;
|
||||
#endif
|
||||
|
||||
MBEDTLS_SSL_DEBUG_MSG( 2, ( "=> parse hello verify request" ) );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue