mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-31 18:32:57 +00:00
remove ssl_tls13_has_compat_ticket_flags
This content of the function is moved to ssl_tls13_has_configured_ticket. Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
This commit is contained in:
parent
2bfd716293
commit
9b84ea75de
@ -672,22 +672,14 @@ static psa_algorithm_t ssl_tls13_get_ciphersuite_hash_alg(int ciphersuite)
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
|
||||
static int ssl_tls13_has_compat_ticket_flags(mbedtls_ssl_context *ssl)
|
||||
{
|
||||
mbedtls_ssl_session *session = ssl->session_negotiate;
|
||||
return session != NULL &&
|
||||
mbedtls_ssl_conf_tls13_check_kex_modes(ssl,
|
||||
mbedtls_ssl_session_get_ticket_flags(
|
||||
session,
|
||||
MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ALL));
|
||||
}
|
||||
|
||||
static int ssl_tls13_has_configured_ticket(mbedtls_ssl_context *ssl)
|
||||
{
|
||||
mbedtls_ssl_session *session = ssl->session_negotiate;
|
||||
return ssl->handshake->resume &&
|
||||
session != NULL && session->ticket != NULL &&
|
||||
ssl_tls13_has_compat_ticket_flags(ssl);
|
||||
mbedtls_ssl_conf_tls13_check_kex_modes(
|
||||
ssl, mbedtls_ssl_session_get_ticket_flags(
|
||||
session, MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ALL));
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_SSL_EARLY_DATA)
|
||||
|
Loading…
x
Reference in New Issue
Block a user