mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-19 00:40:14 +00:00
- Fixed warning for t if no debugging defined
This commit is contained in:
parent
ed375caa3b
commit
87e5cdad5b
@ -178,7 +178,9 @@ static int ssl_write_client_hello( ssl_context *ssl )
|
|||||||
|
|
||||||
static int ssl_parse_server_hello( ssl_context *ssl )
|
static int ssl_parse_server_hello( ssl_context *ssl )
|
||||||
{
|
{
|
||||||
|
#if defined(POLARSSL_DEBUG_MSG) && defined(POLARSSL_DEBUG_C)
|
||||||
time_t t;
|
time_t t;
|
||||||
|
#endif
|
||||||
int ret, i;
|
int ret, i;
|
||||||
size_t n;
|
size_t n;
|
||||||
int ext_len;
|
int ext_len;
|
||||||
@ -226,10 +228,12 @@ static int ssl_parse_server_hello( ssl_context *ssl )
|
|||||||
|
|
||||||
ssl->minor_ver = buf[5];
|
ssl->minor_ver = buf[5];
|
||||||
|
|
||||||
|
#if defined(POLARSSL_DEBUG_MSG) && defined(POLARSSL_DEBUG_C)
|
||||||
t = ( (time_t) buf[6] << 24 )
|
t = ( (time_t) buf[6] << 24 )
|
||||||
| ( (time_t) buf[7] << 16 )
|
| ( (time_t) buf[7] << 16 )
|
||||||
| ( (time_t) buf[8] << 8 )
|
| ( (time_t) buf[8] << 8 )
|
||||||
| ( (time_t) buf[9] );
|
| ( (time_t) buf[9] );
|
||||||
|
#endif
|
||||||
|
|
||||||
memcpy( ssl->randbytes + 32, buf + 6, 32 );
|
memcpy( ssl->randbytes + 32, buf + 6, 32 );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user