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

Commit87a2d55

Browse files
committed
Changing BOOST_NETWORK_NO_HTTPS to BOOST_NETWORK_ENABLE_HTTPS, making SSL support an opt-in.
1 parent0b2b483 commit87a2d55

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎boost/network/protocol/http/impl/sync_connection_base.hpp‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
#include<boost/network/traits/istringstream.hpp>
1313
#include<boost/asio/streambuf.hpp>
1414
#include<boost/asio/read.hpp>
15+
#include<boost/asio/write.hpp>
1516
#include<boost/asio/read_until.hpp>
1617
#include<boost/tuple/tuple.hpp>
1718

1819
#include<boost/network/protocol/http/impl/http_sync_connection.hpp>
19-
#ifndef BOOST_NETWORK_NO_HTTPS
20+
#ifdef BOOST_NETWORK_ENABLE_HTTPS
2021
#include<boost/network/protocol/http/impl/https_sync_connection.hpp>
2122
#endif
2223

@@ -204,7 +205,7 @@ namespace boost { namespace network { namespace http { namespace impl {
204205

205206
static sync_connection_base<Tag,version_major,version_minor> *new_connection(resolver_type & resolver, resolver_function_type resolve,bool https) {
206207
if (https) {
207-
#ifndef BOOST_NETWORK_NO_HTTPS
208+
#ifdef BOOST_NETWORK_ENABLE_HTTPS
208209
returndynamic_cast<sync_connection_base<Tag,version_major,version_minor>*>(new https_sync_connection<Tag,version_major,version_minor>(resolver, resolve));
209210
#else
210211
throwstd::runtime_error("HTTPS not supported.");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp