Introduced VerifiedTlsTransport

This commit is contained in:
Paul-Louis Ageneau
2020-07-16 23:11:23 +02:00
parent fdbc038d51
commit 907e8273c8
7 changed files with 194 additions and 46 deletions

View File

@ -47,7 +47,11 @@ public:
Closed = 3,
};
WebSocket();
struct Configuration {
bool disableTlsVerification = false;
};
WebSocket(std::optional<Configuration> config = nullopt);
~WebSocket();
State readyState() const;
@ -82,6 +86,7 @@ private:
std::shared_ptr<WsTransport> mWsTransport;
std::recursive_mutex mInitMutex;
const Configuration mConfig;
string mScheme, mHost, mHostname, mService, mPath;
std::atomic<State> mState = State::Closed;