Skip to content
Snippets Groups Projects
Commit 306e1e66 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by gerrit2
Browse files

tls: add isServer() method to TlsSession

This method returns a bool indicating if the TlsSession was
created as Server (true) or as Client (false).

Change-Id: I14f1c50d584430fc959134512ce11edaf029c198
Tuleap: #660
parent 2233202d
Branches
No related tags found
Loading
...@@ -138,6 +138,8 @@ public: ...@@ -138,6 +138,8 @@ public:
// Returns the TLS session type ('server' or 'client') // Returns the TLS session type ('server' or 'client')
const char* typeName() const; const char* typeName() const;
bool isServer() const { return isServer_; }
// Request TLS thread to stop and quit. IO are not possible after that. // Request TLS thread to stop and quit. IO are not possible after that.
void shutdown(); void shutdown();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment