- minor progress in SRTP updates
This commit is contained in:
parent
5a05d9d40b
commit
6b7b086bf7
|
|
@ -348,8 +348,8 @@ SrtpSuite AudioProvider::processCryptoAttribute(const resip::Data& value, ByteBu
|
|||
if (strcmp(suite, SRTP_SUITE_NAME_1) == 0)
|
||||
result = SRTP_AES_128_AUTH_80;
|
||||
else
|
||||
if (strcmp(suite, SRTP_SUITE_NAME_2) == 0)
|
||||
result = SRTP_AES_256_AUTH_80;
|
||||
if (strcmp(suite, SRTP_SUITE_NAME_2) == 0)
|
||||
result = SRTP_AES_256_AUTH_80;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ public:
|
|||
void setupMirror(bool enable);
|
||||
|
||||
void configureMediaObserver(MT::Stream::MediaObserver* observer, void* userTag);
|
||||
static SrtpSuite processCryptoAttribute(const resip::Data& value, ByteBuffer& key);
|
||||
|
||||
protected:
|
||||
// SDP's stream name
|
||||
|
|
@ -109,7 +110,6 @@ protected:
|
|||
void* mMediaObserverTag = nullptr;
|
||||
|
||||
std::string createCryptoAttribute(SrtpSuite suite);
|
||||
SrtpSuite processCryptoAttribute(const resip::Data& value, ByteBuffer& key);
|
||||
void findRfc2833(const resip::SdpContents::Session::Medium::CodecContainer& codecs);
|
||||
|
||||
// Implements setState() logic. This allows to be called from constructor (it is not virtual function)
|
||||
|
|
|
|||
|
|
@ -154,13 +154,13 @@ void SrtpSession::close()
|
|||
if (mOutboundSession)
|
||||
{
|
||||
srtp_dealloc(mOutboundSession);
|
||||
mOutboundSession = NULL;
|
||||
mOutboundSession = nullptr;
|
||||
}
|
||||
|
||||
if (mInboundSession)
|
||||
{
|
||||
srtp_dealloc(mInboundSession);
|
||||
mInboundSession = NULL;
|
||||
mInboundSession = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue