X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fhttp%2FFNetHttp_HttpCookieStorageManagerImpl.cpp;h=1be285a93230d9d17bec916c4c8dffe0b2583b3a;hb=5a8bea192ff797c9965c8207f3b1aac3bd4858ba;hp=6cf17ecc0cf8fa342b129e4c67a8de02ecc40a65;hpb=e2f3a4442fc1d34fa2d9c299caaa18803c7f856f;p=platform%2Fframework%2Fnative%2Fnet.git diff --git a/src/http/FNetHttp_HttpCookieStorageManagerImpl.cpp b/src/http/FNetHttp_HttpCookieStorageManagerImpl.cpp index 6cf17ec..1be285a 100644 --- a/src/http/FNetHttp_HttpCookieStorageManagerImpl.cpp +++ b/src/http/FNetHttp_HttpCookieStorageManagerImpl.cpp @@ -98,7 +98,7 @@ _HttpCookieStorageManagerImpl::GetCookies(const Tizen::Base::String& url, Tizen: 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) @@ -110,7 +110,7 @@ _HttpCookieStorageManagerImpl::GetCookies(const Tizen::Base::String& url, Tizen: 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()); @@ -146,7 +146,7 @@ _HttpCookieStorageManagerImpl::GetCookies(const Tizen::Base::String& url, Tizen: } } - 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; @@ -156,7 +156,7 @@ _HttpCookieStorageManagerImpl::GetCookies(const Tizen::Base::String& url, Tizen: 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) @@ -165,7 +165,7 @@ _HttpCookieStorageManagerImpl::GetCookies(const Tizen::Base::String& url, Tizen: 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()); } } @@ -194,7 +194,7 @@ _HttpCookieStorageManagerImpl::GetCookies(const Tizen::Base::String& url, Tizen: 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; } @@ -232,7 +232,7 @@ _HttpCookieStorageManagerImpl::RemoveCookies(const Tizen::Base::String& url) 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) @@ -244,7 +244,7 @@ _HttpCookieStorageManagerImpl::RemoveCookies(const Tizen::Base::String& url) 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()); @@ -289,7 +289,7 @@ _HttpCookieStorageManagerImpl::RemoveCookies(const Tizen::Base::String& url) } } - 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; @@ -298,7 +298,7 @@ _HttpCookieStorageManagerImpl::RemoveCookies(const Tizen::Base::String& url) 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) @@ -307,7 +307,7 @@ _HttpCookieStorageManagerImpl::RemoveCookies(const Tizen::Base::String& url) 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; } @@ -318,7 +318,7 @@ _HttpCookieStorageManagerImpl::RemoveCookies(const Tizen::Base::String& url) "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; } } @@ -345,7 +345,7 @@ _HttpCookieStorageManagerImpl::RemoveCookies(const Tizen::Base::String& url) 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); @@ -357,7 +357,7 @@ _HttpCookieStorageManagerImpl::RemoveCookies(const Tizen::Base::String& url) } 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()); } } @@ -366,7 +366,7 @@ _HttpCookieStorageManagerImpl::RemoveCookies(const Tizen::Base::String& url) 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; } @@ -394,7 +394,7 @@ _HttpCookieStorageManagerImpl::RemoveAllCookies() 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;