r, "Failed to check the url(%ls).", url.GetPointer());
hostName = uri.GetHost();
- SysLog(NID_NET_HTTP, " The host name of cookie is %ls.", hostName.GetPointer());
+ SysSecureLog(NID_NET_HTTP, " The host name of cookie is %ls.", hostName.GetPointer());
r = hostName.IndexOf(L"www", 0, indexOfPrefix);
if (r == E_SUCCESS && indexOfPrefix >= 0)
domainName = hostName;
}
- SysLog(NID_NET_HTTP, "The domain name of cookie is %ls.", domainName.GetPointer());
+ SysSecureLog(NID_NET_HTTP, "The domain name of cookie is %ls.", domainName.GetPointer());
SysTryReturnResult(NID_NET_HTTP, !domainName.IsEmpty(),
E_INVALID_ARG, "The input argument is invalid(%ls).", url.GetPointer());
}
}
- SysLog(NID_NET_HTTP, "The cookie line is %ls.", cookieLine.GetPointer());
+ SysSecureLog(NID_NET_HTTP, "The cookie line is %ls.", cookieLine.GetPointer());
StringTokenizer headerToken(cookieLine, L"\t");
int index = 0;
String cookieField;
r = headerToken.GetNextToken(cookieField);
cookieField.Trim();
- SysLog(NID_NET_HTTP, "The cookie field is %ls.", cookieField.GetPointer());
+ SysSecureLog(NID_NET_HTTP, "The cookie field is %ls.", cookieField.GetPointer());
if (r == E_SUCCESS && !cookieField.IsEmpty())
{
if (index == _CURL_COOKIE_DOMAIN_NAME_INDEX)
r = cookieField.IndexOf(domainName, 0, indexOf);
if (r == E_SUCCESS && indexOf >= 0)
{
- SysLog(NID_NET_HTTP, "Found the cookie domain(%ls).", cookieField.GetPointer());
+ SysSecureLog(NID_NET_HTTP, "Found the cookie domain(%ls).", cookieField.GetPointer());
}
}
SysLog(NID_NET_HTTP, "The cookie file is not exist.");
}
- SysLog(NID_NET_HTTP, "The domain name is %ls, the cookies are %ls.", domainName.GetPointer(), cookies.GetPointer());
+ SysSecureLog(NID_NET_HTTP, "The domain name is %ls, the cookies are %ls.", domainName.GetPointer(), cookies.GetPointer());
return r;
}
r, "Failed to check the url(%ls).", url.GetPointer());
hostName = uri.GetHost();
- SysLog(NID_NET_HTTP, "The host name of url is %ls.", hostName.GetPointer());
+ SysSecureLog(NID_NET_HTTP, "The host name of url is %ls.", hostName.GetPointer());
r = hostName.IndexOf(L"www", 0, indexOfPrefix);
if (r == E_SUCCESS && indexOfPrefix >= 0)
domainName = hostName;
}
- SysLog(NID_NET_HTTP, " The domain name of url is %ls.", domainName.GetPointer());
+ SysSecureLog(NID_NET_HTTP, " The domain name of url is %ls.", domainName.GetPointer());
SysTryReturnResult(NID_NET_HTTP, !domainName.IsEmpty(),
E_INVALID_ARG, "The input argument is invalid(%ls).", url.GetPointer());
}
}
- SysLog(NID_NET_HTTP, "The cookie line is %ls.", cookieLine.GetPointer());
+ SysSecureLog(NID_NET_HTTP, "The cookie line is %ls.", cookieLine.GetPointer());
StringTokenizer headerToken(cookieLine, L"\t");
int index = 0;
String cookieField;
r = headerToken.GetNextToken(cookieField);
cookieField.Trim();
- SysLog(NID_NET_HTTP, "The cookie field is %ls.", cookieField.GetPointer());
+ SysSecureLog(NID_NET_HTTP, "The cookie field is %ls.", cookieField.GetPointer());
if (r == E_SUCCESS && cookieField.IsEmpty() == false)
{
if (index == _CURL_COOKIE_DOMAIN_NAME_INDEX)
r = cookieField.IndexOf(domainName, 0, indexOf);
if (r == E_SUCCESS && indexOf >= 0)
{
- SysLog(NID_NET_HTTP, "Found the cookie domain(%ls) to be removed.", cookieField.GetPointer());
+ SysSecureLog(NID_NET_HTTP, "Found the cookie domain(%ls) to be removed.", cookieField.GetPointer());
isMatchedCookies = true;
break;
}
"Memory allocation failed.");
cookieList.Add(*pCookieLine);
- SysLog(NID_NET_HTTP, "The cookie domain[%ls] is saved.", cookieField.GetPointer());
+ SysSecureLog(NID_NET_HTTP, "The cookie domain[%ls] is saved.", cookieField.GetPointer());
break;
}
}
String* pCookieLine = dynamic_cast< String* >(cookieList.GetAt(i));
SysTryReturnResult(NID_NET_HTTP, pCookieLine != null, E_SYSTEM,
"A system error has occurred.");
- SysLog(NID_NET_HTTP, "[%d] The cookie line is %ls.", i, pCookieLine->GetPointer());
+ SysSecureLog(NID_NET_HTTP, "[%d] The cookie line is %ls.", i, pCookieLine->GetPointer());
r = pCookieFile->Write(*pCookieLine);
r = TransExceptionsExclusive(r, E_SYSTEM, E_OUT_OF_MEMORY);
}
else
{
- SysLog(NID_NET_HTTP, " Not found the Cookie domain(%ls).", domainName.GetPointer());
+ SysSecureLog(NID_NET_HTTP, " Not found the Cookie domain(%ls).", domainName.GetPointer());
}
}
SysLog(NID_NET_HTTP, "The cookie file is not exist.");
}
- SysLog(NID_NET_HTTP, "The Cookie of Domain Name(%ls) is removed.", domainName.GetPointer());
+ SysSecureLog(NID_NET_HTTP, "The Cookie of Domain Name(%ls) is removed.", domainName.GetPointer());
return r;
}
SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r,
"Failed to remove the cookie file[%ls].", filePath.GetPointer());
- SysLog(NID_NET_HTTP, "The cookie file(%ls) was removed.", filePath.GetPointer());
+ SysSecureLog(NID_NET_HTTP, "The cookie file(%ls) was removed.", filePath.GetPointer());
}
return r;