| 41 | }; |
| 42 | |
| 43 | class HTTPSTraceServer : public HTTPSServer |
| 44 | { |
| 45 | public: |
| 46 | using HTTPSServer::HTTPSServer; |
| 47 | |
| 48 | protected: |
| 49 | std::shared_ptr<SSLSession> CreateSession(const std::shared_ptr<SSLServer>& server) override |
| 50 | { |
| 51 | return std::make_shared<HTTPSTraceSession>(std::dynamic_pointer_cast<HTTPSServer>(server)); |
| 52 | } |
| 53 | |
| 54 | protected: |
| 55 | void onError(int error, const std::string& category, const std::string& message) override |
| 56 | { |
| 57 | std::cout << "HTTPS Trace server caught an error with code " << error << " and category '" << category << "': " << message << std::endl; |
| 58 | } |
| 59 | }; |
| 60 | |
| 61 | int main(int argc, char** argv) |
| 62 | { |
nothing calls this directly
no outgoing calls
no test coverage detected