|
reSIProcate/stack
9694
|
process k= (encryption key) line More...
#include <SdpContents.hxx>

Public Types | |
| enum | KeyType { NoEncryption = 0, Prompt, Clear, Base64, UriKey } |
Public Member Functions | |
| Encryption (const KeyType &method, const Data &key) | |
| Encryption (const Encryption &rhs) | |
| Encryption & | operator= (const Encryption &rhs) |
| void | parse (ParseBuffer &pb) |
| EncodeStream & | encode (EncodeStream &) const |
| const KeyType & | getMethod () const |
| const KeyType & | method () const |
| KeyType & | method () |
| const Data & | getKey () const |
| const Data & | key () const |
| Data & | key () |
| Encryption () | |
Private Attributes | |
| KeyType | mMethod |
| Data | mKey |
process k= (encryption key) line
Definition at line 547 of file SdpContents.hxx.
Definition at line 550 of file SdpContents.hxx.
Definition at line 864 of file SdpContents.cxx.
| SdpContents::Session::Encryption::Encryption | ( | const Encryption & | rhs | ) |
Definition at line 870 of file SdpContents.cxx.
| SdpContents::Session::Encryption::Encryption | ( | ) |
Definition at line 859 of file SdpContents.cxx.
: mMethod(NoEncryption), mKey() {}
| EncodeStream & SdpContents::Session::Encryption::encode | ( | EncodeStream & | s | ) | const |
Definition at line 889 of file SdpContents.cxx.
References resip::Symbols::COLON, CRLF, and KeyTypes.
Referenced by resip::SdpContents::Session::Medium::encode().
{
s << "k="
<< KeyTypes[mMethod];
if (mMethod != Prompt)
{
s << Symbols::COLON[0] << mKey;
}
s << Symbols::CRLF;
return s;
}
| const Data& resip::SdpContents::Session::Encryption::getKey | ( | ) | const [inline] |
| const KeyType& resip::SdpContents::Session::Encryption::getMethod | ( | ) | const [inline] |
Definition at line 560 of file SdpContents.hxx.
References mMethod.
Referenced by resip::SdpContents::Session::Medium::encode().
{return mMethod;}
| const Data& resip::SdpContents::Session::Encryption::key | ( | ) | const [inline] |
| Data& resip::SdpContents::Session::Encryption::key | ( | ) | [inline] |
| const KeyType& resip::SdpContents::Session::Encryption::method | ( | ) | const [inline] |
| KeyType& resip::SdpContents::Session::Encryption::method | ( | ) | [inline] |
| SdpContents::Session::Encryption & SdpContents::Session::Encryption::operator= | ( | const Encryption & | rhs | ) |
| void SdpContents::Session::Encryption::parse | ( | ParseBuffer & | pb | ) |
Definition at line 903 of file SdpContents.cxx.
References resip::Symbols::COLON, resip::Symbols::CRLF, resip::ParseBuffer::data(), resip::ParseBuffer::eof(), resip::Symbols::EQUALS, KeyTypes, resip::ParseBuffer::reset(), resip::ParseBuffer::skipChar(), skipEol(), resip::ParseBuffer::skipToChar(), and resip::ParseBuffer::skipToOneOf().
Referenced by resip::SdpContents::Session::Medium::parse().
{
pb.skipChar('k');
const char* anchor = pb.skipChar(Symbols::EQUALS[0]);
pb.skipToChar(Symbols::COLON[0]);
if (!pb.eof())
{
Data p;
pb.data(p, anchor);
if (p == KeyTypes[Clear])
{
mMethod = Clear;
}
else if (p == KeyTypes[Base64])
{
mMethod = Base64;
}
else if (p == KeyTypes[UriKey])
{
mMethod = UriKey;
}
anchor = pb.skipChar(Symbols::COLON[0]);
pb.skipToOneOf(Symbols::CRLF);
pb.data(mKey, anchor);
}
else
{
pb.reset(anchor);
pb.skipToOneOf(Symbols::CRLF);
Data p;
pb.data(p, anchor);
if (p == KeyTypes[Prompt])
{
mMethod = Prompt;
}
}
skipEol(pb);
}

Definition at line 570 of file SdpContents.hxx.
Referenced by getKey(), key(), and operator=().
Definition at line 569 of file SdpContents.hxx.
Referenced by getMethod(), method(), and operator=().
1.7.5.1