Loading plugins/letsencrypt/CMakeLists.txt +2 −2 Original line number Diff line number Diff line Loading @@ -5,9 +5,9 @@ add_library(letsencrypt SHARED letsencrypt.cpp) add_dependencies(letsencrypt blogidev) if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows") target_link_libraries(letsencrypt PUBLIC blogidev uuidp::uuidp kernel32.lib json-c::json-c) target_link_libraries(letsencrypt PUBLIC blogidev uuidp::uuidp kernel32.lib json-c::json-c netplus::netplus) else() target_link_libraries(letsencrypt PUBLIC blogidev uuidp::uuidp dl blogidev json-c::json-c) target_link_libraries(letsencrypt PUBLIC blogidev uuidp::uuidp dl blogidev json-c::json-c netplus::netplus) endif() install (TARGETS letsencrypt DESTINATION lib/blogi/plugins) src/CMakeLists.txt +1 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ add_library(blogidev STATIC theme.cpp cookie.cpp mail.cpp blogi_globals.cpp ) target_include_directories(blogidev PRIVATE ${SMTPCLIENT_INCLUDE_DIR}) Loading src/blogi.cpp +0 −8 Original line number Diff line number Diff line Loading @@ -95,14 +95,6 @@ static std::string cookieDomain(libhttppp::HttpRequest &req) { return h; } std::unique_ptr<blogi::Config> blogi::Blogi::Cfg; libhttppp::HttpD *blogi::Blogi::HttpServer = nullptr; bool blogi::Blogi::reloadSSL(const std::string &certpath, const std::string &keypath, const std::string &password) { if (!HttpServer) return false; return HttpServer->reloadCertificates(certpath, keypath, password); } blogi::Blogi::Blogi(std::vector<netplus::socket*> serversocket,bool debug) : HttpEvent(serversocket){ // Helper to initialize a DomainContext Loading src/blogi_globals.cpp 0 → 100644 +10 −0 Original line number Diff line number Diff line #include <httppp/httpd.h> #include "blogi.h" std::unique_ptr<blogi::Config> blogi::Blogi::Cfg; libhttppp::HttpD *blogi::Blogi::HttpServer = nullptr; bool blogi::Blogi::reloadSSL(const std::string &certpath, const std::string &keypath, const std::string &password) { if (!HttpServer) return false; return HttpServer->reloadCertificates(certpath, keypath, password); } Loading
plugins/letsencrypt/CMakeLists.txt +2 −2 Original line number Diff line number Diff line Loading @@ -5,9 +5,9 @@ add_library(letsencrypt SHARED letsencrypt.cpp) add_dependencies(letsencrypt blogidev) if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows") target_link_libraries(letsencrypt PUBLIC blogidev uuidp::uuidp kernel32.lib json-c::json-c) target_link_libraries(letsencrypt PUBLIC blogidev uuidp::uuidp kernel32.lib json-c::json-c netplus::netplus) else() target_link_libraries(letsencrypt PUBLIC blogidev uuidp::uuidp dl blogidev json-c::json-c) target_link_libraries(letsencrypt PUBLIC blogidev uuidp::uuidp dl blogidev json-c::json-c netplus::netplus) endif() install (TARGETS letsencrypt DESTINATION lib/blogi/plugins)
src/CMakeLists.txt +1 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ add_library(blogidev STATIC theme.cpp cookie.cpp mail.cpp blogi_globals.cpp ) target_include_directories(blogidev PRIVATE ${SMTPCLIENT_INCLUDE_DIR}) Loading
src/blogi.cpp +0 −8 Original line number Diff line number Diff line Loading @@ -95,14 +95,6 @@ static std::string cookieDomain(libhttppp::HttpRequest &req) { return h; } std::unique_ptr<blogi::Config> blogi::Blogi::Cfg; libhttppp::HttpD *blogi::Blogi::HttpServer = nullptr; bool blogi::Blogi::reloadSSL(const std::string &certpath, const std::string &keypath, const std::string &password) { if (!HttpServer) return false; return HttpServer->reloadCertificates(certpath, keypath, password); } blogi::Blogi::Blogi(std::vector<netplus::socket*> serversocket,bool debug) : HttpEvent(serversocket){ // Helper to initialize a DomainContext Loading
src/blogi_globals.cpp 0 → 100644 +10 −0 Original line number Diff line number Diff line #include <httppp/httpd.h> #include "blogi.h" std::unique_ptr<blogi::Config> blogi::Blogi::Cfg; libhttppp::HttpD *blogi::Blogi::HttpServer = nullptr; bool blogi::Blogi::reloadSSL(const std::string &certpath, const std::string &keypath, const std::string &password) { if (!HttpServer) return false; return HttpServer->reloadCertificates(certpath, keypath, password); }