Commit 5d5ae1ff authored by jan.koester's avatar jan.koester
Browse files

testtet

parent bcff8f84
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)
+1 −0
Original line number Diff line number Diff line
@@ -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})
+0 −8
Original line number Diff line number Diff line
@@ -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

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);
}