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

Add #verify_hostname= and #verify_hostname to skip hostname verification #2858

Merged
merged 1 commit into from Jan 23, 2020

Conversation

ganmacs
Copy link
Contributor

@ganmacs ganmacs commented Jan 23, 2020

According to ruby/openssl#60,

Currently an user who wants to do the hostname verification needs to
call SSLSocket#post_connection_check explicitly after the TLS connection
is established.

if an user who wants to skip the hostname verification,
SSLSocket#post_connection_check doesn't need to be called

ref: https://bugs.ruby-lang.org/issues/16555

@ganmacs ganmacs force-pushed the support-verfy_hostname-for-net-http branch 2 times, most recently from ff01b83 to eed9e58 Compare January 23, 2020 07:09
@ganmacs ganmacs requested a review from nurse January 23, 2020 07:20
According to ruby/openssl#60,

> Currently an user who wants to do the hostname verification needs to
call SSLSocket#post_connection_check explicitly after the TLS connection
is established.

if an user who wants to skip the hostname verification,
SSLSocket#post_connection_check doesn't need to be called
@ganmacs ganmacs force-pushed the support-verfy_hostname-for-net-http branch from eed9e58 to 883693c Compare January 23, 2020 07:25
@nurse nurse merged commit be6931f into ruby:master Jan 23, 2020
@ganmacs ganmacs deleted the support-verfy_hostname-for-net-http branch January 23, 2020 08:37
matzbot pushed a commit that referenced this pull request Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants