mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-27 16:24:02 +00:00
Add replay detection to RTSP and control streams
Replays can do very little harm in these contexts, but let's detect and prevent them anyways. Fixes #165 Closes #170
This commit is contained in:
1 parent
5d3c0ecca0
commit
c7dff22963
7 files changed
+139
-17
No files matched your search
+1
-1
@@ -98,7 +98,7 @@ int initializeInputStream(void) {
|
||||
LbqInitializeLinkedBlockingQueue(&packetQueue, MAX_QUEUED_INPUT_PACKETS);
|
||||
LbqInitializeLinkedBlockingQueue(&packetHolderFreeList, MAX_QUEUED_INPUT_PACKETS);
|
||||
|
||||
cryptoContext = PltCreateCryptoContext();
|
||||
cryptoContext = PltCreateCryptoContext(0);
|
||||
encryptedControlStream = APP_VERSION_AT_LEAST(7, 1, 431);
|
||||
|
||||
// FIXME: Unsure if this is exactly right, but it's probably good enough.
|
||||
|
||||
Reference in new issue
Block a user