File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
boost/network/protocol/http/client/connection Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ namespace impl {
19
19
struct normal_delegate : connection_delegate {
20
20
normal_delegate (asio::io_service &service);
21
21
22
- virtual void connect (asio::ip::tcp::endpoint & endpoint, std::string host,
22
+ virtual void connect (asio::ip::tcp::endpoint &endpoint, std::string host,
23
23
function<void (system::error_code const &)> handler);
24
24
virtual void write (
25
25
asio::streambuf &command_streambuf,
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ boost::network::http::impl::normal_delegate::normal_delegate(
19
19
: service_(service) {}
20
20
21
21
void boost::network::http::impl::normal_delegate::connect (
22
- asio::ip::tcp::endpoint & endpoint,
23
- std::string host,
22
+ asio::ip::tcp::endpoint &endpoint, std::string host,
24
23
function<void (system::error_code const &)> handler) {
25
24
socket_.reset (new asio::ip::tcp::socket (service_));
26
25
socket_->async_connect (endpoint, handler);
Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ boost::network::http::impl::ssl_delegate::ssl_delegate(
24
24
always_verify_peer_(always_verify_peer) {}
25
25
26
26
void boost::network::http::impl::ssl_delegate::connect (
27
- asio::ip::tcp::endpoint &endpoint,
28
- std::string host,
27
+ asio::ip::tcp::endpoint &endpoint, std::string host,
29
28
function<void (system::error_code const &)> handler) {
30
29
context_.reset (
31
30
new asio::ssl::context (service_, asio::ssl::context::sslv23_client));
@@ -49,7 +48,7 @@ void boost::network::http::impl::ssl_delegate::connect(
49
48
socket_.reset (
50
49
new asio::ssl::stream<asio::ip::tcp::socket>(service_, *context_));
51
50
if (always_verify_peer_)
52
- socket_->set_verify_callback (boost::asio::ssl::rfc2818_verification (host));
51
+ socket_->set_verify_callback (boost::asio::ssl::rfc2818_verification (host));
53
52
socket_->lowest_layer ().async_connect (
54
53
endpoint,
55
54
::boost::bind (
You can’t perform that action at this time.
0 commit comments