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