Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
d252ab34
Commit
d252ab34
authored
15 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
[#1722] Use getLocalSSRCNetwork() to identify crypto context for in out RTP
parent
e2fc783e
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sflphone-common/src/audio/audiortp/AudioSrtpSession.cpp
+27
-26
27 additions, 26 deletions
sflphone-common/src/audio/audiortp/AudioSrtpSession.cpp
with
27 additions
and
26 deletions
sflphone-common/src/audio/audiortp/AudioSrtpSession.cpp
+
27
−
26
View file @
d252ab34
...
@@ -43,6 +43,7 @@ AudioSrtpSession::AudioSrtpSession (ManagerImpl * manager, SIPCall * sipcall) :
...
@@ -43,6 +43,7 @@ AudioSrtpSession::AudioSrtpSession (ManagerImpl * manager, SIPCall * sipcall) :
initializeMasterSalt
();
initializeMasterSalt
();
initializeInputCryptoContext
();
initializeInputCryptoContext
();
initializeOutputCryptoContext
();
initializeOutputCryptoContext
();
outputCryptoCtx
->
deriveSrtpKeys
(
0
);
outputCryptoCtx
->
deriveSrtpKeys
(
0
);
setInQueueCryptoContext
(
inputCryptoCtx
);
setInQueueCryptoContext
(
inputCryptoCtx
);
...
@@ -71,36 +72,36 @@ void AudioSrtpSession::initializeMasterSalt(void)
...
@@ -71,36 +72,36 @@ void AudioSrtpSession::initializeMasterSalt(void)
void
AudioSrtpSession
::
initializeInputCryptoContext
(
void
)
void
AudioSrtpSession
::
initializeInputCryptoContext
(
void
)
{
{
inputCryptoCtx
=
new
ost
::
CryptoContext
(
0x12345678
,
inputCryptoCtx
=
new
ost
::
CryptoContext
(
getLocalSSRCNetwork
()
,
0
,
// roc,
0
,
// roc,
0L
,
// keydr,
0L
,
// keydr,
SrtpEncryptionAESCM
,
// encryption algo
SrtpEncryptionAESCM
,
// encryption algo
SrtpAuthenticationSha1Hmac
,
// authtication algo
SrtpAuthenticationSha1Hmac
,
// authtication algo
_masterKey
,
// Master Key
_masterKey
,
// Master Key
128
/
8
,
// Master Key length
128
/
8
,
// Master Key length
_masterSalt
,
// Master Salt
_masterSalt
,
// Master Salt
112
/
8
,
// Master Salt length
112
/
8
,
// Master Salt length
128
/
8
,
// encryption keyl
128
/
8
,
// encryption keyl
160
/
8
,
// authentication key len
160
/
8
,
// authentication key len
112
/
8
,
// session salt len
112
/
8
,
// session salt len
80
/
8
);
// authentication tag len
80
/
8
);
// authentication tag len
}
}
void
AudioSrtpSession
::
initializeOutputCryptoContext
(
void
)
void
AudioSrtpSession
::
initializeOutputCryptoContext
(
void
)
{
{
outputCryptoCtx
=
new
ost
::
CryptoContext
(
0x12345678
,
outputCryptoCtx
=
new
ost
::
CryptoContext
(
getLocalSSRCNetwork
()
,
0
,
// roc,
0
,
// roc,
0L
,
// keydr,
0L
,
// keydr,
SrtpEncryptionAESCM
,
// encryption algo
SrtpEncryptionAESCM
,
// encryption algo
SrtpAuthenticationSha1Hmac
,
// authtication algo
SrtpAuthenticationSha1Hmac
,
// authtication algo
_masterKey
,
// Master Key
_masterKey
,
// Master Key
128
/
8
,
// Master Key length
128
/
8
,
// Master Key length
_masterSalt
,
// Master Salt
_masterSalt
,
// Master Salt
112
/
8
,
// Master Salt length
112
/
8
,
// Master Salt length
128
/
8
,
// encryption keyl
128
/
8
,
// encryption keyl
160
/
8
,
// authentication key len
160
/
8
,
// authentication key len
112
/
8
,
// session salt len
112
/
8
,
// session salt len
80
/
8
);
// authentication tag len
80
/
8
);
// authentication tag len
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment