Add TLS1_3 guard to finalize_write_client_hello() to fix compile issue

Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
This commit is contained in:
Xiaokang Qian 2023-01-04 07:38:50 +00:00
parent 2a674937dd
commit b46275c7ec
2 changed files with 4 additions and 0 deletions

View file

@ -963,7 +963,9 @@ int mbedtls_ssl_write_client_hello(mbedtls_ssl_context *ssl)
buf_len,
msg_len));
#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
mbedtls_ssl_tls13_finalize_write_client_hello(ssl);
#endif
}

View file

@ -2740,6 +2740,8 @@ static inline void mbedtls_ssl_session_clear_ticket_flags(
}
#endif /* MBEDTLS_SSL_PROTO_TLS1_3 && MBEDTLS_SSL_SESSION_TICKETS */
#if defined(MBEDTLS_SSL_CLI_C) && defined(MBEDTLS_SSL_PROTO_TLS1_3)
int mbedtls_ssl_tls13_finalize_write_client_hello(mbedtls_ssl_context *ssl);
#endif
#endif /* ssl_misc.h */