You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
3.3 KiB

  1. From 11a29e071019645967ee748d410954ec5f73866f Mon Sep 17 00:00:00 2001
  2. From: Rob Peters <ROb@DVBControl.com>
  3. Date: Wed, 24 Jan 2018 12:03:24 +0100
  4. Subject: [PATCH] Make compatible with boost 1.66
  5. ---
  6. msbuild/domoticz.vcxproj | 2 +-
  7. webserver/proxyclient.cpp | 2 +-
  8. webserver/server.cpp | 4 ++--
  9. 3 files changed, 4 insertions(+), 4 deletions(-)
  10. diff --git a/msbuild/domoticz.vcxproj b/msbuild/domoticz.vcxproj
  11. index e4aa595..1aa9e7a 100755
  12. --- a/msbuild/domoticz.vcxproj
  13. +++ b/msbuild/domoticz.vcxproj
  14. @@ -58,7 +58,7 @@
  15. <PrecompiledHeader>Use</PrecompiledHeader>
  16. <WarningLevel>Level3</WarningLevel>
  17. <Optimization>Disabled</Optimization>
  18. - <PreprocessorDefinitions>WIN32;ENABLE_PYTHON;_DEBUG;PTW32_STATIC_LIB;WITH_OPENZWAVE;OPENZWAVE_USEDLL;WWW_ENABLE_SSL;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  19. + <PreprocessorDefinitions>WIN32;ENABLE_PYTHON;_DEBUG;PTW32_STATIC_LIB;WITH_OPENZWAVE;OPENZWAVE_USEDLL;WWW_ENABLE_SSL;_CONSOLE;BOOST_CONFIG_SUPPRESS_OUTDATED_MESSAGE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  20. <AdditionalIncludeDirectories>./Windows Libraries/Boost/boost_1_63_0;./libusb;../MQTT;..\hardware\openzwave;./Windows Libraries/openssl;./Windows Libraries/Curl;./Windows Libraries/pthread;../hardware/plugins/Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  21. <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
  22. <EnablePREfast>false</EnablePREfast>
  23. diff --git a/webserver/proxyclient.cpp b/webserver/proxyclient.cpp
  24. index 203ee61..efc9815 100644
  25. --- a/webserver/proxyclient.cpp
  26. +++ b/webserver/proxyclient.cpp
  27. @@ -639,7 +639,7 @@ namespace http {
  28. void CProxyManager::StartThread()
  29. {
  30. try {
  31. - boost::asio::ssl::context ctx(io_service, boost::asio::ssl::context::sslv23);
  32. + boost::asio::ssl::context ctx(boost::asio::ssl::context::sslv23);
  33. ctx.set_verify_mode(boost::asio::ssl::verify_none);
  34. proxyclient.reset(new CProxyClient(io_service, ctx, m_pWebEm));
  35. diff --git a/webserver/server.cpp b/webserver/server.cpp
  36. index 5255aa3..0c1af08 100644
  37. --- a/webserver/server.cpp
  38. +++ b/webserver/server.cpp
  39. @@ -148,7 +148,7 @@ void server::handle_accept(const boost::system::error_code& e) {
  40. ssl_server::ssl_server(const ssl_server_settings & ssl_settings, request_handler & user_request_handler) :
  41. server_base(ssl_settings, user_request_handler),
  42. settings_(ssl_settings),
  43. - context_(io_service_, ssl_settings.get_ssl_method())
  44. + context_(ssl_settings.get_ssl_method())
  45. {
  46. #ifdef DEBUG_WWW
  47. _log.Log(LOG_STATUS, "[web:%s] create ssl_server using ssl_server_settings : %s", ssl_settings.listening_port.c_str(), ssl_settings.to_string().c_str());
  48. @@ -161,7 +161,7 @@ ssl_server::ssl_server(const ssl_server_settings & ssl_settings, request_handler
  49. ssl_server::ssl_server(const server_settings & settings, request_handler & user_request_handler) :
  50. server_base(settings, user_request_handler),
  51. settings_(dynamic_cast<ssl_server_settings const &>(settings)),
  52. - context_(io_service_, dynamic_cast<ssl_server_settings const &>(settings).get_ssl_method()) {
  53. + context_(dynamic_cast<ssl_server_settings const &>(settings).get_ssl_method()) {
  54. #ifdef DEBUG_WWW
  55. _log.Log(LOG_STATUS, "[web:%s] create ssl_server using server_settings : %s", settings.listening_port.c_str(), settings.to_string().c_str());
  56. #endif
  57. --
  58. 2.7.4