You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix for issue cpp-netlib#444 "Unable to compile without OpenSSL"
- add an option CPP-NETLIB_ENABLE_HTTPS to enable/disable HTTPS in
cmake config. By default it is turned ON (enable HTTPS) so as to
preserve before-patch behavior. Turn it OFF to disable entirely
SSL usage and linkage in libraries and header files.
- when SSL is disabled, the 'stream_handler' struct is replaced by
a simple tcp_socket, and function calls in the files option.hpp,
async_server.hpp and async_connection.hpp are adapted and compiled
accordingly.
Note that sync_...hpp files don't have problems (yet) since SSL is
not integrated into these. Also note that a cleaner solution might
be to consider implementing two separate struct 'stream_handler' and
'stream_handler_ssl', or something similar.
0 commit comments