Skip to content

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

Merged
nurse merged 1 commit into
ruby:masterfrom
ganmacs:support-verfy_hostname-for-net-http
Jan 23, 2020
Merged

Add #verify_hostname= and #verify_hostname to skip hostname verification#2858
nurse merged 1 commit into
ruby:masterfrom
ganmacs:support-verfy_hostname-for-net-http

Conversation

@ganmacs

@ganmacs ganmacs commented Jan 23, 2020

Copy link
Copy Markdown
Contributor

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
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