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/sni: skip SNI check if we are client or server_name absent #1169

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

maximilianfridrich
Copy link
Contributor

@maximilianfridrich maximilianfridrich commented Jul 30, 2024

The servername_callback is also called when the server requests a certificate in the ServerHello. However, the server will not usually send us the server_name extension. So skip the SNI check if we are client. Also continue if the server_name extension is not present.

@maximilianfridrich maximilianfridrich force-pushed the sni_fixes branch 3 times, most recently from 1c83988 to e926362 Compare July 30, 2024 08:20
@maximilianfridrich maximilianfridrich changed the title tls/sni: skip SNI check if we are client tls/sni: skip SNI check if we are client or server_name absent Jul 30, 2024
src/tls/openssl/sni.c Outdated Show resolved Hide resolved
The servername_callback is also called when the server requests a
certificate in the ServerHello. However, the server will not usually
send us the server_name extension. So skip the SNI check if we are
client. Also continue if the server_name extension is not present.
@sreimers sreimers merged commit a64cb83 into baresip:main Jul 30, 2024
36 checks passed
@maximilianfridrich maximilianfridrich deleted the sni_fixes branch July 30, 2024 11:20
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.

2 participants