mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-02 10:00:47 -04:00
Guards ticket_creation_time
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
9cb953a402
commit
b2455d2472
@ -1973,7 +1973,7 @@ void ssl_serialize_session_save_load(int ticket_len, char *crt_file,
|
|||||||
* Make sure both session structures are identical
|
* Make sure both session structures are identical
|
||||||
*/
|
*/
|
||||||
#if defined(MBEDTLS_HAVE_TIME)
|
#if defined(MBEDTLS_HAVE_TIME)
|
||||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
|
#if defined(MBEDTLS_SSL_PROTO_TLS1_3) && defined(MBEDTLS_SSL_SRV_C)
|
||||||
if (tls_version == MBEDTLS_SSL_VERSION_TLS1_3) {
|
if (tls_version == MBEDTLS_SSL_VERSION_TLS1_3) {
|
||||||
TEST_ASSERT(original.ticket_creation_time == restored.ticket_creation_time);
|
TEST_ASSERT(original.ticket_creation_time == restored.ticket_creation_time);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user