2#if defined(HAVE_CONFIG_H)
15#define RESIPROCATE_SUBSYSTEM resip::Subsystem::REPRO
23 : mWsCookieAuthSharedSecret(wsCookieAuthSharedSecret)
34 unsigned char hmac[20];
35 computeHmac((
char*)hmac, message.
data(), (
int)message.
size(), mWsCookieAuthSharedSecret.
data(), (
int)mWsCookieAuthSharedSecret.
size());
#define WarningLog(args_)
BasicWsConnectionValidator(const Data &wsCookieAuthSharedSecret)
virtual bool validateConnection(const resip::WsCookieContext &wsCookieContext)
virtual ~BasicWsConnectionValidator()
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
size_type size() const noexcept
Returns the number of bytes in this Data.
const char * data() const noexcept
Returns a pointer to the contents of this Data.
Data getWsSessionExtra() const
Data getWsSessionMAC() const
time_t getExpiresTime() const
Data getWsSessionInfo() const
This Class is used to implement a primitive form of RPC using loose XML formatting.
dcm! – add UnusedChecking(_enum) below;
void computeHmac(char *hmac, const char *input, int length, const char *key, int sizeKey)