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
9091c20f
Commit
9091c20f
authored
15 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
[#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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sflphone-common/src/audio/audiortp/AudioSrtpSession.cpp
+19
-15
19 additions, 15 deletions
sflphone-common/src/audio/audiortp/AudioSrtpSession.cpp
with
19 additions
and
15 deletions
sflphone-common/src/audio/audiortp/AudioSrtpSession.cpp
+
19
−
15
View file @
9091c20f
...
@@ -72,26 +72,30 @@ void AudioSrtpSession::initializeMasterSalt(void)
...
@@ -72,26 +72,30 @@ void AudioSrtpSession::initializeMasterSalt(void)
void
AudioSrtpSession
::
initializeInputCryptoContext
(
void
)
void
AudioSrtpSession
::
initializeInputCryptoContext
(
void
)
{
{
inputCryptoCtx
=
new
ost
::
CryptoContext
(
IncomingDataQueue
::
getLocalSSRC
(),
// this one does not works
0
,
// roc,
// inputCryptoCtx = new ost::CryptoContext(IncomingDataQueue::getLocalSSRCNetwork(),
0L
,
// keydr,
inputCryptoCtx
=
new
ost
::
CryptoContext
(
0x0
,
SrtpEncryptionAESCM
,
// encryption algo
0
,
// roc,
SrtpAuthenticationSha1Hmac
,
// authtication algo
0L
,
// keydr,
_masterKey
,
// Master Key
SrtpEncryptionAESCM
,
// encryption algo
128
/
8
,
// Master Key length
SrtpAuthenticationSha1Hmac
,
// authtication algo
_masterSalt
,
// Master Salt
_masterKey
,
// Master Key
112
/
8
,
// Master Salt length
128
/
8
,
// Master Key length
128
/
8
,
// encryption keyl
_masterSalt
,
// Master Salt
160
/
8
,
// authentication key len
112
/
8
,
// Master Salt length
112
/
8
,
// session salt len
128
/
8
,
// encryption keyl
80
/
8
);
// authentication tag len
160
/
8
,
// authentication key len
112
/
8
,
// session salt len
_debug
(
"********************* Crypto Context IN with SSRC %i ******************"
,
IncomingDataQueue
::
getLocalSSRC
());
80
/
8
);
// authentication tag len
_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,
...
...
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