Skip to content
Snippets Groups Projects
Commit 9091c20f authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#1722] Crypto context for incoming data must be init with SSRC 0x0

parent fb470432
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,9 @@ void AudioSrtpSession::initializeMasterSalt(void) ...@@ -72,7 +72,9 @@ void AudioSrtpSession::initializeMasterSalt(void)
void AudioSrtpSession::initializeInputCryptoContext(void) void AudioSrtpSession::initializeInputCryptoContext(void)
{ {
inputCryptoCtx = new ost::CryptoContext(IncomingDataQueue::getLocalSSRC(), // this one does not works
// inputCryptoCtx = new ost::CryptoContext(IncomingDataQueue::getLocalSSRCNetwork(),
inputCryptoCtx = new ost::CryptoContext(0x0,
0, // roc, 0, // roc,
0L, // keydr, 0L, // keydr,
SrtpEncryptionAESCM, // encryption algo SrtpEncryptionAESCM, // encryption algo
...@@ -86,12 +88,14 @@ void AudioSrtpSession::initializeInputCryptoContext(void) ...@@ -86,12 +88,14 @@ void AudioSrtpSession::initializeInputCryptoContext(void)
112 / 8, // session salt len 112 / 8, // session salt len
80 / 8); // authentication tag len 80 / 8); // authentication tag len
_debug("********************* Crypto Context IN with SSRC %i ******************", IncomingDataQueue::getLocalSSRC()); _debug("********************* Crypto Context IN with SSRC %i ******************", IncomingDataQueue::getLocalSSRCNetwork());
} }
void AudioSrtpSession::initializeOutputCryptoContext(void) void AudioSrtpSession::initializeOutputCryptoContext(void)
{ {
// this one works
// outputCryptoCtx = new ost::CryptoContext(OutgoingDataQueue::getLocalSSRC(),
outputCryptoCtx = new ost::CryptoContext(OutgoingDataQueue::getLocalSSRC(), outputCryptoCtx = new ost::CryptoContext(OutgoingDataQueue::getLocalSSRC(),
0, // roc, 0, // roc,
0L, // keydr, 0L, // keydr,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment