[reSIProcate] question about nc parameter value
Hi, all,
nonce-count = "nc" "=" nc-value
nc-value = 8LHEX
LHEX
32 hex digits, where the alphabetic characters MUST be lower case,
because MD5 is not case insensitive.
However, the nc parameter values in resip is upper case.
What do you think?
Thank you!
--------------------------------------------------------
Helper.cxx:
void
Helper::updateNonceCount(unsigned int& nonceCount, Data& nonceCountString)
{
if (!nonceCountString.empty())
{
return;
}
nonceCount++;
{
//DataStream s(nonceCountString);
//s << std::setw(8) << std::setfill('0') << std::hex << nonceCount;
char buf[128];
*buf = 0;
#if (defined(_MSC_VER) && _MSC_VER >= 1400)
sprintf_s(buf,128,"%08x",nonceCount);
#else
sprintf(buf,"%08x",nonceCount);
#endif
nonceCountString = buf;
}
DebugLog(<< "nonceCount is now: [" << nonceCountString << "]");
}