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

[#1722] Set crypto context in SRTP sessions

parent 81c11a60
No related branches found
No related tags found
No related merge requests found
...@@ -187,8 +187,6 @@ namespace sfl { ...@@ -187,8 +187,6 @@ namespace sfl {
_layerFrameSize = _audiolayer->getFrameSize(); // in ms _layerFrameSize = _audiolayer->getFrameSize(); // in ms
_layerSampleRate = _audiolayer->getSampleRate(); _layerSampleRate = _audiolayer->getSampleRate();
// if(this->)
} }
template <typename D> template <typename D>
......
...@@ -35,6 +35,11 @@ AudioSrtpSession::AudioSrtpSession (ManagerImpl * manager, SIPCall * sipcall) : ...@@ -35,6 +35,11 @@ AudioSrtpSession::AudioSrtpSession (ManagerImpl * manager, SIPCall * sipcall) :
_debug ("AudioSrtpSession initialized"); _debug ("AudioSrtpSession initialized");
initializeMasterKey(); initializeMasterKey();
initializeMasterSalt(); initializeMasterSalt();
initializeCryptoContext();
txCryptoCtx->deriveSrtpKeys(0);
setInQueueCryptoContext(txCryptoCtx);
setOutQueueCryptoContext(txCryptoCtx);
} }
void AudioSrtpSession::initializeMasterKey(void) void AudioSrtpSession::initializeMasterKey(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment