From 306e1e666927c2c339316688264c00cca4605d9c Mon Sep 17 00:00:00 2001 From: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com> Date: Fri, 6 May 2016 15:26:25 -0400 Subject: [PATCH] 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 --- src/security/tls_session.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/security/tls_session.h b/src/security/tls_session.h index 0a09ba2eb8..1303ef2320 100644 --- a/src/security/tls_session.h +++ b/src/security/tls_session.h @@ -138,6 +138,8 @@ public: // Returns the TLS session type ('server' or 'client') const char* typeName() const; + bool isServer() const { return isServer_; } + // Request TLS thread to stop and quit. IO are not possible after that. void shutdown(); -- GitLab