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:
Cameron Gutman committed 2026-11-01 14:07:45 -06:00
1 parent 5d3c0ecca0
commit c7dff22963
7 files changed
+139 -17

No files matched your search

+1 -1
View File
@@ -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.