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.

22 lines
846 B

  1. From 87749eb9b74d82dced807cc16fb011d4e3fb052d Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Sat, 13 Jul 2019 17:28:06 -0700
  4. Subject: [PATCH] WebServerHelper: Fix compilation - deprecated APIs
  5. OpenSSL has initialization deprecated.
  6. ---
  7. main/WebServerHelper.cpp | 2 ++
  8. 1 file changed, 2 insertions(+)
  9. --- a/main/WebServerHelper.cpp
  10. +++ b/main/WebServerHelper.cpp
  11. @@ -37,7 +37,9 @@ namespace http {
  12. our_listener_port = web_settings.listening_port;
  13. #ifdef WWW_ENABLE_SSL
  14. if (secure_web_settings.is_enabled()) {
  15. +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
  16. SSL_library_init();
  17. +#endif
  18. secureServer_.reset(new CWebServer());
  19. bRet |= secureServer_->StartServer(secure_web_settings, serverpath, bIgnoreUsernamePassword);
  20. serverCollection.push_back(secureServer_);