implemented crypto stream, with some extra unit tests

This commit is contained in:
Nick Bolton 2013-04-05 16:33:48 +00:00
parent 728ad02d61
commit 0a69c28ac5
21 changed files with 217 additions and 32 deletions

View file

@ -25,6 +25,8 @@
namespace synergy { class IStream; }
const int g_encryptionEnabled = true;
//! Generic proxy for client
class CClientProxy : public CBaseClientProxy {
public:
@ -47,9 +49,16 @@ public:
//! @name accessors
//@{
//! Get stream (unmodified)
/*!
Returns the original stream passed to the c'tor.
*/
synergy::IStream* getStreamUnmodified() const;
//! Get stream
/*!
Returns the stream passed to the c'tor.
Returns a crypto stream if the user has this enabled,
otherwise returns the original stream passed to the c'tor.
*/
synergy::IStream* getStream() const;