Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitff42fcf

Browse files
eakralydeanberris
authored andcommitted
Verify hostname only when always_verify==true
1 parent449b8f5 commitff42fcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎boost/network/protocol/http/client/connection/ssl_delegate.ipp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ void boost::network::http::impl::ssl_delegate::connect(
4848
boost::asio::ssl::context::pem);
4949
socket_.reset(
5050
new asio::ssl::stream<asio::ip::tcp::socket>(service_, *context_));
51-
socket_->set_verify_callback(boost::asio::ssl::rfc2818_verification(host));
51+
if (always_verify_peer_)
52+
socket_->set_verify_callback(boost::asio::ssl::rfc2818_verification(host));
5253
socket_->lowest_layer().async_connect(
5354
endpoint,
5455
::boost::bind(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp