File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -133,8 +133,13 @@ additional parameters::
133
133
134
134
If you intend to use the SSL support when using the HTTP client libraries in
135
135
:mod: `cpp-netlib `, you may need to build it with OpenSSL _ installed or at least
136
- available to CMake. One example for building the library with OpenSSL _ support
137
- is by doing the following::
136
+ available to CMake. If you have the development headers for OpenSSL _ installed
137
+ on your system when you build :mod: `cpp-netlib `, CMake will be able to detect it
138
+ and set the ``BOOST_NETWORK_ENABLE_HTTPS `` macro when building the library to
139
+ support HTTPS URIs.
140
+
141
+ One example for building the library with OpenSSL _ support with a custom
142
+ (non-installed) version of OpenSSL _ is by doing the following::
138
143
139
144
$ cmake -DCMAKE_BUILD_TYPE=Debug \
140
145
> -DCMAKE_C_COMPILER=clang \
Original file line number Diff line number Diff line change @@ -39,8 +39,19 @@ only in the following situations:
39
39
code. ** It is best to define this either at compile-time of all code using
40
40
the library, or before including any of the client headers.
41
41
42
- .. _OpenSSL : http://www.openssl.org/
42
+ To use the client implementations that support HTTPS URIs, you may explicitly
43
+ do the following:
44
+
45
+ .. code-block :: c++
43
46
47
+ #define BOOST_NETWORK_ENABLE_HTTPS
48
+ #include <boost/network/include/http/client.hpp>
49
+
50
+ This forces HTTPS support to be enabled and forces a dependency on OpenSSL _.
51
+ This dependency is imposed by `Boost.Asio `_
52
+
53
+ .. _OpenSSL : http://www.openssl.org/
54
+ .. _`Boost.Asio` : http://www.boost.org/libs/asio
44
55
45
56
Implementations
46
57
---------------
You can’t perform that action at this time.
0 commit comments