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

Allow client to verify certificate with NULL server name #520

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

davidk-ad8
Copy link
Contributor

Currently the client always verifies the server name against the server's cert.
This change would allow the client to skip the name verification (as the server does) if a NULL server name is provided.

This would primarily be to allow the use of servers/clients on a local network without hostnames.
It would also be the first step to resolving this Picoquic issue: private-octopus/picoquic#1184

Client only enforces name/ipaddr verification in verify_cert_chain if the server_name is not NULL
Copy link
Member

@kazuho kazuho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR. We convert expressions to boolean explicitly, but otherwise the PR looks good to me.

lib/openssl.c Outdated Show resolved Hide resolved
@kazuho kazuho merged commit 5a4461d into h2o:master Apr 12, 2024
10 checks passed
Copy link
Collaborator

@huitema huitema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(sorry, commenting in wrong depot)

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.

3 participants