- minor progress in SRTP updates

This commit is contained in:
Dmytro Bogovych 2025-08-23 14:28:58 +03:00
parent 5a05d9d40b
commit 6b7b086bf7
3 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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;
} }
} }