28 const char* pszUserName =
"username";
29 const char* pszRealm =
"stunrealm";
30 const char* pszPassword =
"ThePassword";
45 if (fLongCredentials ==
false)
61 pMsg = spBuffer->GetData();
62 sizeMsg = spBuffer->GetSize();
64 state = reader.
AddBytes(pMsg, sizeMsg);
70 if (fLongCredentials ==
false)
124 const char c_username[] =
"\xe3\x83\x9e\xe3\x83\x88\xe3\x83\xaa\xe3\x83\x83\xe3\x82\xaf\xe3\x82\xb9";
127 const char c_realm[] =
"example.org";
132 reader.
AddBytes(c_requestbytes,
sizeof(c_requestbytes)-1);
HRESULT AddRandomTransactionId(StunTransactionId *pTransId)
HRESULT TestMessageIntegrity(bool fWithFingerprint, bool fLongCredentials)
HRESULT AddRealm(const char *pszRealm)
HRESULT ValidateMessageIntegrityLong(const char *pszUser, const char *pszRealm, const char *pszPassword)
HRESULT AddBindingRequestHeader()
ReaderParseState AddBytes(const uint8_t *pData, uint32_t size)
ReaderParseState GetState()
HRESULT AddMessageIntegrityLongTerm(const char *pszUserName, const char *pszRealm, const char *pszPassword)
HRESULT AddFingerprintAttribute()
HRESULT ValidateMessageIntegrityShort(const char *pszPassword)
const unsigned char c_requestbytes[]
HRESULT GetResult(CRefCountedBuffer *pspBuffer)
HRESULT AddMessageIntegrityShortTerm(const char *pszPassword)
bool HasMessageIntegrityAttribute()
boost::shared_ptr< CBuffer > CRefCountedBuffer
#define ChkIfA(expr, hrerror)
HRESULT AddUserName(const char *pszUserName)