|
reSIProcate/DialogUsageManager
9694
|
#include <DumHelper.hxx>
Static Public Member Functions | |
| static void | setOutgoingEncryptionLevel (SipMessage &message, DialogUsageManager::EncryptionLevel level) |
| static void | setEncryptionPerformed (SipMessage &message) |
Static Private Member Functions | |
| static SecurityAttributes::OutgoingEncryptionLevel | convert (DialogUsageManager::EncryptionLevel level) |
Definition at line 14 of file DumHelper.hxx.
| SecurityAttributes::OutgoingEncryptionLevel DumHelper::convert | ( | DialogUsageManager::EncryptionLevel | level | ) | [static, private] |
Definition at line 26 of file DumHelper.cxx.
References resip::SecurityAttributes::Encrypt, resip::DialogUsageManager::Encrypt, resip::SecurityAttributes::None, resip::DialogUsageManager::None, resip::SecurityAttributes::Sign, resip::DialogUsageManager::Sign, resip::SecurityAttributes::SignAndEncrypt, and resip::DialogUsageManager::SignAndEncrypt.
{
SecurityAttributes::OutgoingEncryptionLevel ret = SecurityAttributes::None;
switch(level)
{
case DialogUsageManager::None:
ret = SecurityAttributes::None;
break;
case DialogUsageManager::Encrypt:
ret = SecurityAttributes::Encrypt;
break;
case DialogUsageManager::Sign:
ret = SecurityAttributes::Sign;
break;
case DialogUsageManager::SignAndEncrypt:
ret = SecurityAttributes::SignAndEncrypt;
break;
}
return ret;
}
| void DumHelper::setEncryptionPerformed | ( | SipMessage & | message | ) | [static] |
Definition at line 18 of file DumHelper.cxx.
References resip::SecurityAttributes::getOutgoingEncryptionLevel(), resip::SipMessage::getSecurityAttributes(), resip::SecurityAttributes::setEncryptionPerformed(), resip::SecurityAttributes::setOutgoingEncryptionLevel(), and resip::SipMessage::setSecurityAttributes().
{
SecurityAttributes* attr = new SecurityAttributes();
attr->setOutgoingEncryptionLevel(message.getSecurityAttributes()->getOutgoingEncryptionLevel());
attr->setEncryptionPerformed(true);
message.setSecurityAttributes(auto_ptr<SecurityAttributes>(attr));
}

| void DumHelper::setOutgoingEncryptionLevel | ( | SipMessage & | message, |
| DialogUsageManager::EncryptionLevel | level | ||
| ) | [static] |
Definition at line 10 of file DumHelper.cxx.
References resip::SecurityAttributes::setOutgoingEncryptionLevel(), and resip::SipMessage::setSecurityAttributes().
Referenced by resip::ClientInviteSession::dispatchQueuedUpdate(), resip::InviteSession::info(), resip::InviteSessionCreator::InviteSessionCreator(), resip::DialogUsageManager::makeInviteSession(), resip::DialogUsageManager::makeInviteSessionFromRefer(), resip::InviteSession::message(), resip::ClientPagerMessage::pageFirstMsgQueued(), resip::ClientInviteSession::provideAnswer(), resip::InviteSession::provideAnswer(), resip::ClientInviteSession::provideOffer(), resip::InviteSession::provideOffer(), resip::ServerInviteSession::sendAccept(), resip::ClientInviteSession::sendPrack(), resip::ServerInviteSession::sendProvisional(), resip::ServerInviteSession::sendUpdate(), and resip::InviteSession::sessionRefresh().
{
SecurityAttributes* attr = new SecurityAttributes();
attr->setOutgoingEncryptionLevel(convert(level));
message.setSecurityAttributes(auto_ptr<SecurityAttributes>(attr));
}

1.7.5.1