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.
 
 
 
 
 
 

24 lines
945 B

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