Skip to content
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

tls/ossl: Adjusted value of ERROR_UNEXPECTED_PACKET #163

Open
wants to merge 1 commit into
base: v24.2.x
Choose a base branch
from

Conversation

michael-redpanda
Copy link

Fixes: CORE-8646

Now using SSL_R_WRONG_VERSION_NUMBER, which is the error OpenSSL returns when it receives a non-TLS packet when expecting a TLS handshake packet. This helps Redpanda because it treats ERROR_UNEXPECTED_PACKET as a benign disconnect error.

Added method that can be used to override the OpenSSL message with one that may be more helpful to users.

Signed-off-by: Michael Boquard [email protected]
(cherry picked from commit f12b65f)

Now using SSL_R_WRONG_VERSION_NUMBER, which is the error OpenSSL returns
when it receives a non-TLS packet when expecting a TLS handshake packet.
This helps Redpanda because it treats ERROR_UNEXPECTED_PACKET as a
benign disconnect error.

Added method that can be used to override the OpenSSL message with one
that may be more helpful to users.

Signed-off-by: Michael Boquard <[email protected]>
(cherry picked from commit f12b65f)
@michael-redpanda michael-redpanda requested a review from a team December 20, 2024 18:37
@michael-redpanda michael-redpanda self-assigned this Dec 20, 2024
@michael-redpanda michael-redpanda requested review from pgellert and BenPope and removed request for a team December 20, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant