mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-12 01:42:21 +08:00
check the ticket version unconditional
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
960b7ebbcf
commit
2bea94ce2e
@ -159,12 +159,10 @@ static int ssl_tls13_offered_psks_check_identity_match_ticket(
|
|||||||
/* We delete the temporary buffer */
|
/* We delete the temporary buffer */
|
||||||
mbedtls_free(ticket_buffer);
|
mbedtls_free(ticket_buffer);
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
|
|
||||||
if (ret == 0 && session->tls_version != MBEDTLS_SSL_VERSION_TLS1_3) {
|
if (ret == 0 && session->tls_version != MBEDTLS_SSL_VERSION_TLS1_3) {
|
||||||
MBEDTLS_SSL_DEBUG_MSG(3, ("ticket version invalid."));
|
MBEDTLS_SSL_DEBUG_MSG(3, ("ticket version invalid."));
|
||||||
ret = MBEDTLS_ERR_SSL_BAD_PROTOCOL_VERSION;
|
ret = MBEDTLS_ERR_SSL_BAD_PROTOCOL_VERSION;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
goto exit;
|
goto exit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user