9#define RESIPROCATE_SUBSYSTEM Subsystem::TRANSPORT
42 for (CookieList::const_iterator it = cookieList.begin(); it != cookieList.end(); ++it)
44 if ((*it).name() == infoCookieName)
46 mWsSessionInfo = (*it).value();
48 else if ((*it).name() == extraCookieName)
50 mWsSessionExtra = (*it).value();
52 else if ((*it).name() == macCookieName)
54 mWsSessionMAC = (*it).value();
60 if(requestUri.
exists(pInfo))
65 if(requestUri.
exists(pExtra))
70 if(requestUri.
exists(pMac))
75 if(mWsSessionInfo.
empty())
77 ErrLog(<<
"Cookie " << infoCookieName <<
" missing or empty");
80 if(mWsSessionMAC.
empty())
82 ErrLog(<<
"Cookie " << macCookieName <<
" missing or empty");
87 StackLog(<<
"Checking Cookie scheme version");
88 int contextVersion = pb.
uInt32();
100 mExpiresTime = (time_t) pb.
uInt64();
109 pb.
data(uriString, anchor);
110 mWsFromUri =
Uri(
"sip:" + uriString);
115 pb.
data(uriString, anchor);
116 mWsDestUri =
Uri(
"sip:" + uriString);
#define RESIP_WS_COOKIE_CONTEXT_VERSION
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
bool empty() const noexcept
Checks whether the Data is empty.
Data urlDecoded() const
Performs in-place HTTP URL un-escaping of a Data.
Provides string-parsing functionality with protection from buffer overflow.
uint32_t uInt32()
dcm! – merge these, ask about length checks
CurrentPosition skipToChar(char c)
CurrentPosition position() const
const Data & getContext() const
CurrentPosition skipChar()
void data(Data &data, const char *start) const
make the passed in data share memory with the buffer (uses Data::Share)
BaseException used to indicate parse failures.
General exception class for Transport.
Represents the "SIP-URI" and "SIPS-URI" elements in the RFC 3261 grammar.
bool exists(const Param< Uri > ¶mType) const
const Data & param(const ExtensionParameter ¶m) const
Const accessor for non-natively-supported parameter types.
Data getWsSessionExtra() const
Data getWsSessionMAC() const
WsCookieContext & operator=(const WsCookieContext &rhs)
time_t getExpiresTime() const
Data getWsSessionInfo() const
dcm! – add UnusedChecking(_enum) below;
std::vector< Cookie > CookieList