move kex mode check in ticket_flags to psks_check_identity_match_ticket
Move the kex mode check in ticket_flags to ssl_tls13_offered_psks_check_identity_match_ticket and add new error 'MBEDTLS_ERR_SSL_TICKET_INVALID_KEX_MODE' to indicate the check failure. Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
This commit is contained in:
parent
c7af2c4f8c
commit
3eb49be6a8
2 changed files with 21 additions and 19 deletions
|
@ -96,7 +96,8 @@
|
|||
/* Error space gap */
|
||||
/** Processing of the Certificate handshake message failed. */
|
||||
#define MBEDTLS_ERR_SSL_BAD_CERTIFICATE -0x7A00
|
||||
/* Error space gap */
|
||||
/** The kex mode allowed by ticket is not supported by client */
|
||||
#define MBEDTLS_ERR_SSL_TICKET_INVALID_KEX_MODE -0x7A80
|
||||
/**
|
||||
* Received NewSessionTicket Post Handshake Message.
|
||||
* This error code is experimental and may be changed or removed without notice.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue