- 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

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

View File

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

View File

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