mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-23 19:38:26 +02:00
sending IV to client before DKDN, DKUP and DKRP (the most sensitive messages). unit tests to support changes. made crypto stream tests a bit less spammy by using NiceMock.
This commit is contained in:
parent
23998fc06c
commit
7010de9cc4
37 changed files with 490 additions and 227 deletions
|
@ -25,8 +25,6 @@
|
|||
|
||||
namespace synergy { class IStream; }
|
||||
|
||||
const int g_encryptionEnabled = true;
|
||||
|
||||
//! Generic proxy for client
|
||||
class CClientProxy : public CBaseClientProxy {
|
||||
public:
|
||||
|
@ -49,12 +47,6 @@ public:
|
|||
//! @name accessors
|
||||
//@{
|
||||
|
||||
//! Get stream (unmodified)
|
||||
/*!
|
||||
Returns the original stream passed to the c'tor.
|
||||
*/
|
||||
synergy::IStream* getStreamUnmodified() const;
|
||||
|
||||
//! Get stream
|
||||
/*!
|
||||
Returns a crypto stream if the user has this enabled,
|
||||
|
@ -125,6 +117,7 @@ public:
|
|||
virtual void gameDeviceSticks(GameDeviceID id, SInt16 x1, SInt16 y1, SInt16 x2, SInt16 y2) = 0;
|
||||
virtual void gameDeviceTriggers(GameDeviceID id, UInt8 t1, UInt8 t2) = 0;
|
||||
virtual void gameDeviceTimingReq() = 0;
|
||||
virtual void cryptoIv(const UInt8* iv) = 0;
|
||||
|
||||
private:
|
||||
synergy::IStream* m_stream;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue