Loading src/httpd.cpp +1 −12 Changes for src/httpd.cpp: 1 added line, 12 removed lines. Original line number Diff line number Diff line Loading @@ -208,12 +208,6 @@ libhttppp::HttpD::HttpD(int argc, char** argv) { bundle.cert = x509; bundle.privateKeyDer = keydata; // Load RSA key from DER data if (!netplus::rsa::loadRsaFromDerFile(keydata, bundle.rsa_key)) { _httpexception[HTTPException::Critical] << "failed to load RSA private key from: " << keyder; throw _httpexception; } _certBundle[httpaddr] = bundle; auto ss = std::make_unique<netplus::ssl>(_certBundle, httpaddr, port, maxconnections, -1); Loading Loading @@ -271,12 +265,7 @@ libhttppp::HttpD::HttpD(const std::string& httpaddr, int port,int maxconnections keyfile.close(); bundle.privateKeyDer = keydata; // Load RSA key from DER data if (!netplus::rsa::loadRsaFromDerFile(keydata, bundle.rsa_key)) { _httpexception[HTTPException::Critical] << "failed to load RSA private key from: " << sslkeypath; throw _httpexception; } // Let ssl socket handle RSA key loading from privateKeyDer _certBundle[httpaddr] = bundle; auto ss = std::make_unique<netplus::ssl>(_certBundle, httpaddr, port, maxconnections, -1); Loading Loading
src/httpd.cpp +1 −12 Changes for src/httpd.cpp: 1 added line, 12 removed lines. Original line number Diff line number Diff line Loading @@ -208,12 +208,6 @@ libhttppp::HttpD::HttpD(int argc, char** argv) { bundle.cert = x509; bundle.privateKeyDer = keydata; // Load RSA key from DER data if (!netplus::rsa::loadRsaFromDerFile(keydata, bundle.rsa_key)) { _httpexception[HTTPException::Critical] << "failed to load RSA private key from: " << keyder; throw _httpexception; } _certBundle[httpaddr] = bundle; auto ss = std::make_unique<netplus::ssl>(_certBundle, httpaddr, port, maxconnections, -1); Loading Loading @@ -271,12 +265,7 @@ libhttppp::HttpD::HttpD(const std::string& httpaddr, int port,int maxconnections keyfile.close(); bundle.privateKeyDer = keydata; // Load RSA key from DER data if (!netplus::rsa::loadRsaFromDerFile(keydata, bundle.rsa_key)) { _httpexception[HTTPException::Critical] << "failed to load RSA private key from: " << sslkeypath; throw _httpexception; } // Let ssl socket handle RSA key loading from privateKeyDer _certBundle[httpaddr] = bundle; auto ss = std::make_unique<netplus::ssl>(_certBundle, httpaddr, port, maxconnections, -1); Loading