Skip to content

Commit 87a2d55

Browse files
committed
Changing BOOST_NETWORK_NO_HTTPS to BOOST_NETWORK_ENABLE_HTTPS, making SSL support an opt-in.
1 parent 0b2b483 commit 87a2d55

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
return dynamic_cast<sync_connection_base<Tag,version_major,version_minor>*>(new https_sync_connection<Tag,version_major,version_minor>(resolver, resolve));
209210
#else
210211
throw std::runtime_error("HTTPS not supported.");

0 commit comments

Comments
 (0)