-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handshake failure due to ticket arrival #8591
Comments
Thanks a lot for the report. The quick patch basically disables the reception of TLS 1.3 session tickets by applications thus we cannot to that. I see two possible ways forward:
|
The is MbedTLS example mail client. It has got changes for TLS 1.3, but more than one issue was encountered.
The client calls mbedtls_ssl_handshake(), and one of the steps (not the last) fails inside the library code. Hopefully, the issue would be properely resolved soon. |
My basic understanding of ticket handling is that server sends a ticket when a handshake had been completed successfully. |
After the commit 9b4e964 mail application could successfully connect and send an email. |
Summary
Testing
sls_mail_client.c
with locally installedhMailServer
(based on OpenSSL library).Server cannot be connected due to handshake failure.
System information
Mbed TLS version 3.5.0
Operating system and version: Windows 11
Compiler: Visual Studio 2022
Expected behavior
Successful mail exchange.
Actual behavior
When handshaking gets to
MBEDTLS_SSL_HANDSHAKE_OVER
state, the mail server sends a ticket.Now, since the step returned with a non-zero state
MBEDTLS_ERR_SSL_RECEIVED_NEW_SESSION_TICKET
, handshaking got aborted.Additional information
mbedtls/library/ssl_tls.c
Line 3924 in 857d29f
This addition quickly patched the issue, but the problem might be deeper:
The text was updated successfully, but these errors were encountered: