mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-20 18:07:30 +02:00
implemented crypto stream, with some extra unit tests
This commit is contained in:
parent
728ad02d61
commit
0a69c28ac5
21 changed files with 217 additions and 32 deletions
|
@ -34,6 +34,7 @@
|
|||
#include <cstdlib>
|
||||
#include "CArch.h"
|
||||
#include "IPlatformScreen.h"
|
||||
#include "CCryptoStream.h"
|
||||
|
||||
//
|
||||
// CClient
|
||||
|
@ -147,6 +148,10 @@ CClient::connect()
|
|||
}
|
||||
m_stream = new CPacketStreamFilter(m_stream, true);
|
||||
|
||||
if (s_cryptoEnabled) {
|
||||
m_stream = new CCryptoStream(*EVENTQUEUE, m_stream, true);
|
||||
}
|
||||
|
||||
// connect
|
||||
LOG((CLOG_DEBUG1 "connecting to server"));
|
||||
setupConnecting();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue