Commit c693b95c authored by jan.koester's avatar jan.koester
Browse files

test

parent e3fb9c45
Loading
Loading
Loading
Loading
+3 −3
Changes for src/httpd.cpp: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -164,17 +164,17 @@ libhttppp::HttpD::HttpD(int argc, char** argv) {
        maxconnections = HTTPDCmdController.getCmdbyKey("maxconnections")->getValueInt();
    
    /*get httpaddress from console paramter*/
    const char *sslcertpath = nullptr;
    std::string sslcertpath = nullptr;
    if (HTTPDCmdController.getCmdbyKey("httpscert"))
        sslcertpath = HTTPDCmdController.getCmdbyKey("httpscert")->getValue();
    
    /*get httpaddress from console paramter*/
    const char *sslkeypath = nullptr;
    std::string sslkeypath = nullptr;
    if (HTTPDCmdController.getCmdbyKey("httpskey"))
        sslkeypath = HTTPDCmdController.getCmdbyKey("httpskey")->getValue();

    try {
        if (sslcertpath && sslkeypath) {
        if (!sslcertpath.empty() && !sslkeypath.empty()) {

            std::vector<char> cert,key;