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

Provide into_ssl() for ConnectConfiguration #152

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

eaufavor
Copy link
Member

Port from openssl-rs.

Comment on lines 197 to 209
if self.sni && domain.parse::<IpAddr>().is_err() {
self.ssl.set_hostname(domain)?;
}

if self.verify_hostname {
setup_verify_hostname(&mut self.ssl, domain)?;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Those checks are different than in connect below, they should be the same and connect should call into_ssl.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated. I keep the && domain.parse::<IpAddr>().is_err() which is a fix ported from openssl-rs.

@nox nox merged commit 52307b1 into cloudflare:master Sep 19, 2023
21 checks passed
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.

None yet

2 participants