Apply secure log for privacy info
authorMyeongSeong Seo <ms49.seo@samsung.com>
Thu, 18 Apr 2013 03:06:45 +0000 (12:06 +0900)
committerMyeongSeong Seo <ms49.seo@samsung.com>
Thu, 18 Apr 2013 03:06:45 +0000 (12:06 +0900)
Change-Id: I7d9a9e15b11aeb24ee7921d5f2576a2a258da297
Signed-off-by: MyeongSeong Seo <ms49.seo@samsung.com>
src/http/FNetHttpHttpCookieStorageManager.cpp
src/http/FNetHttp_HttpCommon.cpp
src/http/FNetHttp_HttpCookieStorageManagerImpl.cpp
src/http/FNetHttp_HttpHeaderImpl.cpp
src/http/FNetHttp_HttpManagedNetConnectionEventListenerImpl.cpp
src/http/FNetHttp_HttpMultipartConverter.cpp
src/http/FNetHttp_HttpRequestImpl.cpp
src/http/FNetHttp_HttpResponseImpl.cpp
src/http/FNetHttp_HttpSessionImpl.cpp
src/http/FNetHttp_HttpTransactionImpl.cpp

index d71c2c7..f3e63c7 100644 (file)
@@ -58,7 +58,7 @@ HttpCookieStorageManager::GetCookies(const Tizen::Base::String& url, Tizen::Base
 {
        result r = E_SUCCESS;
 
-       SysLog(NID_NET_HTTP, "url : %ls", url.GetPointer());
+       SysSecureLog(NID_NET_HTTP, "url : %ls", url.GetPointer());
 
        r = __pHttpCookieStorageManagerImpl->GetCookies(url, cookies);
        SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "Propagating.");
@@ -75,7 +75,7 @@ HttpCookieStorageManager::RemoveCookies(const Tizen::Base::String& url)
        r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED, E_OUT_OF_MEMORY);
        SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "The application is not permitted to call this method.");
 
-       SysLog(NID_NET_HTTP, "url : %ls", url.GetPointer());
+       SysSecureLog(NID_NET_HTTP, "url : %ls", url.GetPointer());
 
        r = __pHttpCookieStorageManagerImpl->RemoveCookies(url);
        SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, r, "Propagating.");
index fa6573f..6106064 100644 (file)
@@ -582,7 +582,7 @@ _HttpUtility::CompareHost(const Tizen::Base::String & host0, const Tizen::Base::
        Uri hostUri0;
        Uri hostUri1;
 
-       SysLog(NID_NET_HTTP, "host0 : %ls, host1 : %ls.", host0.GetPointer(), host1.GetPointer());
+       SysSecureLog(NID_NET_HTTP, "host0 : %ls, host1 : %ls.", host0.GetPointer(), host1.GetPointer());
 
        r = hostUri0.SetUri(host0);
        r = TransExceptionsExclusive(r, E_INVALID_ARG, E_OUT_OF_MEMORY);
@@ -638,7 +638,7 @@ _HttpUtility::GetCookieFilePath(void)
        SysTryReturn(NID_NET_HTTP, r == E_SUCCESS, L"", r,
                         "[%s] Propagating.", GetErrorMessage(r));
 
-       SysLog(NID_NET_HTTP, "Cookie Path: %ls", filePath.GetPointer());
+       SysSecureLog(NID_NET_HTTP, "Cookie Path: %ls", filePath.GetPointer());
 
        return filePath;
 }
index 6cf17ec..1be285a 100644 (file)
@@ -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;
index 514cdf3..9951470 100644 (file)
@@ -672,7 +672,7 @@ _HttpHeaderImpl::GetRealm(const String& authName, String& outRealm) const
 
        r = GetHeaderValue(authName, fieldValue);
 
-       SysLog(NID_NET_HTTP, "The http authentication name is %ls, The header value is %ls.", authName.GetPointer(), fieldValue.GetPointer());
+       SysSecureLog(NID_NET_HTTP, "The http authentication name is %ls, The header value is %ls.", authName.GetPointer(), fieldValue.GetPointer());
 
        if (!fieldValue.IsEmpty())
        {
index abe80dd..95892a4 100644 (file)
@@ -136,12 +136,12 @@ _HttpManagedNetConnectionEventListenerImpl::ProcessPendingTransactions(ManagedNe
 
                String proxyAddressOfManagedMode = pConnectionInfoImpl->GetProxyAddress();
                String deviceName = pConnectionInfoImpl->GetDeviceName();
-               SysLog(NID_NET_HTTP, "[Preference Mode] Network is started. the device name is %ls, the system proxy address is %ls.", deviceName.GetPointer(), proxyAddressOfManagedMode.GetPointer());
+               SysSecureLog(NID_NET_HTTP, "[Preference Mode] Network is started. the device name is %ls, the system proxy address is %ls.", deviceName.GetPointer(), proxyAddressOfManagedMode.GetPointer());
 
                if (__pHttpSessionImpl->GetProxyAddress() != null)
                {
                        proxyAddressOfManagedMode = *__pHttpSessionImpl->GetProxyAddress();
-                       SysLog(NID_NET_HTTP, "[Preference Mode] Use a specific proxy address[%ls] of application.", proxyAddressOfManagedMode.GetPointer());
+                       SysSecureLog(NID_NET_HTTP, "[Preference Mode] Use a specific proxy address[%ls] of application.", proxyAddressOfManagedMode.GetPointer());
                }
                else
                {
@@ -200,12 +200,12 @@ _HttpManagedNetConnectionEventListenerImpl::ProcessUpdateProxy(ManagedNetConnect
 
        String proxyAddressOfManagedMode = pConnectionInfoImpl->GetProxyAddress();
        String deviceName = pConnectionInfoImpl->GetDeviceName();
-       SysLog(NID_NET_HTTP, "[Default Mode] Network is changed. the device name is %ls, the system proxy address is %ls.", deviceName.GetPointer(), proxyAddressOfManagedMode.GetPointer());
+       SysSecureLog(NID_NET_HTTP, "[Default Mode] Network is changed. the device name is %ls, the system proxy address is %ls.", deviceName.GetPointer(), proxyAddressOfManagedMode.GetPointer());
 
        if (__pHttpSessionImpl->IsUserProxy() == true)
        {
                proxyAddressOfManagedMode = *__pHttpSessionImpl->GetProxyAddress();
-               SysLog(NID_NET_HTTP, "[Default Mode] Use a specific proxy address[%ls] of application.", proxyAddressOfManagedMode.GetPointer());
+               SysSecureLog(NID_NET_HTTP, "[Default Mode] Use a specific proxy address[%ls] of application.", proxyAddressOfManagedMode.GetPointer());
        }
        else
        {
index da35c49..3ba87dd 100644 (file)
@@ -101,7 +101,7 @@ _HttpMultipartConverter::GenerateFormOfStringPartsN(bool isCheckedLength)
                SysTryCatch(NID_NET_HTTP, pStringPart != null, , E_SYSTEM,
                                        "[E_SYSTEM] A system error has occurred.");
 
-               SysLog(NID_NET_HTTP, "[StringPart] The name is %ls, the mimeType is %ls, the charset is %ls.",
+               SysSecureLog(NID_NET_HTTP, "[StringPart] The name is %ls, the mimeType is %ls, the charset is %ls.",
                           pStringPart->GetName().GetPointer(), pStringPart->GetMimeType().GetPointer(),
                           pStringPart->GetCharset().GetPointer());
 
@@ -334,7 +334,7 @@ _HttpMultipartConverter::GetLengthOfFileParts(void)
                if (pFilePart->GetFilePath().IsEmpty())
                {
                        contentLength += pFilePart->GetByteBuffer()->GetRemaining();
-                       SysLog(NID_NET_HTTP, "[File Part] The length of file name(%ls) is %d.", pFilePart->GetFileName().GetPointer(), pFilePart->GetByteBuffer()->GetRemaining());
+                       SysSecureLog(NID_NET_HTTP, "[File Part] The length of file name(%ls) is %d.", pFilePart->GetFileName().GetPointer(), pFilePart->GetByteBuffer()->GetRemaining());
                }
                else
                {
@@ -344,7 +344,7 @@ _HttpMultipartConverter::GetLengthOfFileParts(void)
                                                "[E_SYSTEM] Failed to GetAttributes(%ls).", pFilePart->GetFilePath().GetPointer());
 
                        contentLength += fileAttributes.GetFileSize();
-                       SysLog(NID_NET_HTTP, "[File Part] The size of File(%ls) is %lld.", pFilePart->GetFilePath().GetPointer(), fileAttributes.GetFileSize());
+                       SysSecureLog(NID_NET_HTTP, "[File Part] The size of File(%ls) is %lld.", pFilePart->GetFilePath().GetPointer(), fileAttributes.GetFileSize());
                }
 
                count++;
@@ -459,7 +459,7 @@ _HttpMultipartConverter::GenerateNextFormOfFilePartsN(int recommendedSize)
                //File Byte Buffer
                if (pFilePart->GetFilePath().IsEmpty())
                {
-                       SysLog(NID_NET_HTTP, "[FileParts] The file name is %ls.", pFilePart->GetFileName().GetPointer());
+                       SysSecureLog(NID_NET_HTTP, "[FileParts] The file name is %ls.", pFilePart->GetFileName().GetPointer());
                        ByteBuffer* pFileBuffer = pFilePart->GetByteBuffer();
 
                        //check if the ByteBuffer is empty
@@ -480,12 +480,12 @@ _HttpMultipartConverter::GenerateNextFormOfFilePartsN(int recommendedSize)
                {
                        File* pFile = null;
                        //generates the byte buffer(Binary Part) from the FilePart.
-                       SysLog(NID_NET_HTTP, "[FileParts] The file is %ls.", pFilePart->GetFilePath().GetPointer());
+                       SysSecureLog(NID_NET_HTTP, "[FileParts] The file is %ls.", pFilePart->GetFilePath().GetPointer());
 
                        //Handle the file
                        if (pFilePart->GetFile() == null)
                        {
-                               SysLog(NID_NET_HTTP, "[FileParts] The file(%ls) was opened.", pFilePart->GetFilePath().GetPointer());
+                               SysSecureLog(NID_NET_HTTP, "[FileParts] The file(%ls) was opened.", pFilePart->GetFilePath().GetPointer());
                                pFile = new (std::nothrow) File();
                                SysTryCatch(NID_NET_HTTP, pFile != null, r = E_OUT_OF_MEMORY, E_OUT_OF_MEMORY,
                                                        "[E_OUT_OF_MEMORY] Memory allocation failed. (%ls).", pFilePart->GetFilePath().GetPointer());
@@ -528,7 +528,7 @@ _HttpMultipartConverter::GenerateNextFormOfFilePartsN(int recommendedSize)
 
                if (isLastFile)
                {
-                       SysLog(NID_NET_HTTP, "[FileParts] End of the file or byte buffer(%ls)", pFilePart->GetFileName().GetPointer());
+                       SysSecureLog(NID_NET_HTTP, "[FileParts] End of the file or byte buffer(%ls)", pFilePart->GetFileName().GetPointer());
 
                        //Removes the FilePart in FilePartList.
                        __pEntity->GetFilePartList()->Remove(*pFilePart, true);
index 1cb1196..a3f889f 100644 (file)
@@ -288,7 +288,7 @@ _HttpRequestImpl::SetUri(const String& uri)
 
        __uri = uri;
 
-       SysLog(NID_NET_HTTP, "The uri is %ls.", uri.GetPointer());
+       SysSecureLog(NID_NET_HTTP, "The uri is %ls.", uri.GetPointer());
 
        return r;
 }
@@ -696,7 +696,7 @@ _HttpRequestImpl::SetCookie(const Tizen::Base::String& cookieString)
 
        __cookieValue = subCookieString;
 
-       SysLog(NID_NET_HTTP, "The cookie string is %ls.", cookieString.GetPointer());
+       SysSecureLog(NID_NET_HTTP, "The cookie string is %ls.", cookieString.GetPointer());
 
        return r;
 }
index e5667a8..985a4a3 100644 (file)
@@ -432,7 +432,7 @@ _HttpResponseImpl::SetCookie(HttpHeader* pHeader)
                                                        "Memory allocation failed.");
 
                                //Parse the cookie.
-                               SysLog(NID_NET_HTTP, "The cookie line is %ls.", pCookieLine->GetPointer());
+                               SysSecureLog(NID_NET_HTTP, "The cookie line is %ls.", pCookieLine->GetPointer());
                                StringTokenizer headerToken(*pCookieLine, _HTTP_SET_COOKIE_DELIMITER);
 
                                while (headerToken.HasMoreTokens())
@@ -462,20 +462,20 @@ _HttpResponseImpl::SetCookie(HttpHeader* pHeader)
 
                                                cookieFlagName.Trim();
 
-                                               SysLog(NID_NET_HTTP, "The name of cookie flag is %ls, the value of cookie flag is %ls.",
+                                               SysSecureLog(NID_NET_HTTP, "The name of cookie flag is %ls, the value of cookie flag is %ls.",
                                                           cookieFlagName.GetPointer(), cookieFlagValue.GetPointer());
 
                                                if (cookieFlagName.Equals(_HTTP_COOKIE_COMMENT_NAME, false))
                                                {
                                                        pCookieImpl->SetComment(cookieFlagValue);
-                                                       SysLog(NID_NET_HTTP, "Set %ls as value(%ls).",
+                                                       SysSecureLog(NID_NET_HTTP, "Set %ls as value(%ls).",
                                                                   _HTTP_COOKIE_COMMENT_NAME, cookieFlagValue.GetPointer());
 
                                                }
                                                else if (cookieFlagName.Equals(_HTTP_COOKIE_COMMENTURL_NAME, false))
                                                {
                                                        pCookieImpl->SetCommentUrl(cookieFlagValue);
-                                                       SysLog(NID_NET_HTTP, "Set %ls as value(%ls).",
+                                                       SysSecureLog(NID_NET_HTTP, "Set %ls as value(%ls).",
                                                                   _HTTP_COOKIE_COMMENTURL_NAME, cookieFlagValue.GetPointer());
 
                                                }
@@ -484,14 +484,14 @@ _HttpResponseImpl::SetCookie(HttpHeader* pHeader)
                                                        if (cookieFlagValue.IsEmpty() == false && cookieFlagValue.Equals(L"TRUE", false))
                                                                pCookieImpl->SetDiscard(true);
 
-                                                       SysLog(NID_NET_HTTP, "Set %ls as value(%ls).",
+                                                       SysSecureLog(NID_NET_HTTP, "Set %ls as value(%ls).",
                                                                   _HTTP_COOKIE_DISCARD_NAME, cookieFlagValue.GetPointer());
 
                                                }
                                                else if (cookieFlagName.Equals(_HTTP_COOKIE_DOMAIN_NAME, false))
                                                {
                                                        pCookieImpl->SetDomain(cookieFlagValue);
-                                                       SysLog(NID_NET_HTTP, "Set %ls as value(%ls).",
+                                                       SysSecureLog(NID_NET_HTTP, "Set %ls as value(%ls).",
                                                                   _HTTP_COOKIE_DOMAIN_NAME, cookieFlagValue.GetPointer());
 
                                                }
@@ -502,21 +502,21 @@ _HttpResponseImpl::SetCookie(HttpHeader* pHeader)
                                                                int rs = -1;
                                                                r = Integer::Parse(cookieFlagValue, rs);
                                                                pCookieImpl->SetMaxAge(rs);
-                                                               SysLog(NID_NET_HTTP, "Set %ls as value(%d).", _HTTP_COOKIE_MAX_AGE_NAME, rs);
+                                                               SysSecureLog(NID_NET_HTTP, "Set %ls as value(%d).", _HTTP_COOKIE_MAX_AGE_NAME, rs);
                                                        }
 
                                                }
                                                else if (cookieFlagName.Equals(_HTTP_COOKIE_PATH_NAME, false))
                                                {
                                                        pCookieImpl->SetPath(cookieFlagValue);
-                                                       SysLog(NID_NET_HTTP, "Set %ls as value(%ls).",
+                                                       SysSecureLog(NID_NET_HTTP, "Set %ls as value(%ls).",
                                                                   _HTTP_COOKIE_PATH_NAME, cookieFlagValue.GetPointer());
 
                                                }
                                                else if (cookieFlagName.Equals(_HTTP_COOKIE_PORT_NAME, false))
                                                {
                                                        pCookieImpl->SetPorts(cookieFlagValue);
-                                                       SysLog(NID_NET_HTTP, "Set %ls as value(%ls).",
+                                                       SysSecureLog(NID_NET_HTTP, "Set %ls as value(%ls).",
                                                                   _HTTP_COOKIE_PORT_NAME, cookieFlagValue.GetPointer());
 
                                                }
@@ -525,28 +525,28 @@ _HttpResponseImpl::SetCookie(HttpHeader* pHeader)
                                                        if (cookieFlagValue.IsEmpty() == false && cookieFlagValue.Equals(L"TRUE", false))
                                                                pCookieImpl->SetSecure(true);
 
-                                                       SysLog(NID_NET_HTTP, "Set %ls as value(%ls).",
+                                                       SysSecureLog(NID_NET_HTTP, "Set %ls as value(%ls).",
                                                                   _HTTP_COOKIE_SECURE_NAME, cookieFlagValue.GetPointer());
 
                                                }
                                                else if (cookieFlagName.Equals(_HTTP_COOKIE_VERSION_NAME, false))
                                                {
                                                        pCookieImpl->SetVersion(cookieFlagValue);
-                                                       SysLog(NID_NET_HTTP, "Set %ls as value(%ls).",
+                                                       SysSecureLog(NID_NET_HTTP, "Set %ls as value(%ls).",
                                                                   _HTTP_COOKIE_VERSION_NAME, cookieFlagValue.GetPointer());
 
                                                }
                                                else if (cookieFlagName.Equals(_HTTP_COOKIE_EXPIRES_NAME, false))
                                                {
                                                        pCookieImpl->SetExpires(cookieFlagValue);
-                                                       SysLog(NID_NET_HTTP, "Set %ls as value(%ls).",
+                                                       SysSecureLog(NID_NET_HTTP, "Set %ls as value(%ls).",
                                                                   _HTTP_COOKIE_EXPIRES_NAME, cookieFlagValue.GetPointer());
 
                                                }
                                                else if (cookieFlagName.Equals(_HTTP_COOKIE_HTTP_ONLY, false))
                                                {
                                                        pCookieImpl->SetHttpOnly(true);
-                                                       SysLog(NID_NET_HTTP, "Set %ls as value(true).", _HTTP_COOKIE_HTTP_ONLY);
+                                                       SysSecureLog(NID_NET_HTTP, "Set %ls as value(true).", _HTTP_COOKIE_HTTP_ONLY);
 
                                                }
                                                else
@@ -555,12 +555,12 @@ _HttpResponseImpl::SetCookie(HttpHeader* pHeader)
                                                        {
                                                                pCookieImpl->SetCookieName(cookieFlagName);
                                                                pCookieImpl->SetCookieValue(cookieFlagValue);
-                                                               SysLog(NID_NET_HTTP, "Set Cookie - Name: %ls, Value: %ls",
+                                                               SysSecureLog(NID_NET_HTTP, "Set Cookie - Name: %ls, Value: %ls",
                                                                           cookieFlagName.GetPointer(), cookieFlagValue.GetPointer());
                                                        }
                                                        else
                                                        {
-                                                               SysLog(NID_NET_HTTP, "Invalid Cookie format. Cookie name already exist.: %ls, Value: %ls",
+                                                               SysSecureLog(NID_NET_HTTP, "Invalid Cookie format. Cookie name already exist.: %ls, Value: %ls",
                                                                           cookieFlagName.GetPointer(), cookieFlagValue.GetPointer());
                                                        }
                                                }
index 62fc975..2b66ca8 100644 (file)
@@ -236,7 +236,7 @@ _HttpSessionImpl::Construct(NetHttpSessionMode sessionMode, const String* pProxy
        SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, E_SYSTEM,
                        "Failed to unlock mutex.");
 
-       SysLog(NID_NET_HTTP, "[ManagedNetConnection] NetHttpSessionMode : %ls, Host Address : %ls, NetHttpCookieFlag : %ls",
+       SysSecureLog(NID_NET_HTTP, "[ManagedNetConnection] NetHttpSessionMode : %ls, Host Address : %ls, NetHttpCookieFlag : %ls",
                   _HttpSessionImpl_GetSessionModeAsString(sessionMode).GetPointer(), hostAddr.GetPointer(), _HttpSessionImpl_GetCookieFlagAsString(flag).GetPointer());
 
        _ManagedNetConnectionImpl* pManagedNetConnectionImpl = null;
@@ -302,19 +302,19 @@ _HttpSessionImpl::Construct(NetHttpSessionMode sessionMode, const String* pProxy
 
                        proxyAddressOfManagedMode = pConnectionInfoImpl->GetProxyAddress();
                        __deviceName = pConnectionInfoImpl->GetDeviceName();
-                       SysLog(NID_NET_HTTP, "[Preference Mode] Network is already started. The device name is %ls, the system proxy address is %ls.", __deviceName.GetPointer(), proxyAddressOfManagedMode.GetPointer());
+                       SysSecureLog(NID_NET_HTTP, "[Preference Mode] Network is already started. The device name is %ls, the system proxy address is %ls.", __deviceName.GetPointer(), proxyAddressOfManagedMode.GetPointer());
                }
        }
        else
        {
                pManagedNetConnectionListener->SetReceivedEvent(true);
                proxyAddressOfManagedMode = _NetConnectionManagerImpl::GetProxyAddress();
-               SysLog(NID_NET_HTTP, "[Default Mode] The current network is managed network preference Mode. The system proxy address is %ls.", proxyAddressOfManagedMode.GetPointer());
+               SysSecureLog(NID_NET_HTTP, "[Default Mode] The current network is managed network preference Mode. The system proxy address is %ls.", proxyAddressOfManagedMode.GetPointer());
        }
 
        if (pProxyAddr != null)
        {
-               SysLog(NID_NET_HTTP, "The proxy address is %ls.", pProxyAddr->GetPointer());
+               SysSecureLog(NID_NET_HTTP, "The proxy address is %ls.", pProxyAddr->GetPointer());
 
                __isUserProxy = true;
                pProxyAddress.reset(new (std::nothrow) String(*pProxyAddr));
@@ -325,7 +325,7 @@ _HttpSessionImpl::Construct(NetHttpSessionMode sessionMode, const String* pProxy
        {
                if (_NetConnectionManagerImpl::IsDefaultMode() == true || pManagedNetConnectionListener->IsEventReceived() == true)
                {
-                       SysLog(NID_NET_HTTP, "The proxy url is %ls.", proxyAddressOfManagedMode.GetPointer());
+                       SysSecureLog(NID_NET_HTTP, "The proxy url is %ls.", proxyAddressOfManagedMode.GetPointer());
 
                        pProxyAddress.reset(new (std::nothrow) String(proxyAddressOfManagedMode));
                        SysTryReturnResult(NID_NET_HTTP, pProxyAddress != null, E_OUT_OF_MEMORY,
@@ -372,7 +372,7 @@ _HttpSessionImpl::Construct(NetHttpSessionMode sessionMode, const String* pProxy
                        __hostAddress = _HTTP_PROTOCOL_SCHEME + __hostAddress;
                }
 
-               SysLog(NID_NET_HTTP, "The host address is %ls.", __hostAddress.GetPointer());
+               SysSecureLog(NID_NET_HTTP, "The host address is %ls.", __hostAddress.GetPointer());
 
                pHostUri = new (std::nothrow) Uri();
                SysTryReturnResult(NID_NET_HTTP, pHostUri != null, E_OUT_OF_MEMORY,
@@ -516,7 +516,7 @@ _HttpSessionImpl::Construct(const NetConnection& netConnection, NetHttpSessionMo
        SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS, E_SYSTEM,
                        "Failed to unlock mutex.");
 
-       SysLog(NID_NET_HTTP, "[ManagedNetConnection] NetHttpSessionMode: %ls, Host Address: %ls, NetHttpCookieFlag: %ls",
+       SysSecureLog(NID_NET_HTTP, "[ManagedNetConnection] NetHttpSessionMode: %ls, Host Address: %ls, NetHttpCookieFlag: %ls",
                   _HttpSessionImpl_GetSessionModeAsString(
                           sessionMode).GetPointer(), hostAddr.GetPointer(), _HttpSessionImpl_GetCookieFlagAsString(flag).GetPointer());
 
@@ -535,7 +535,7 @@ _HttpSessionImpl::Construct(const NetConnection& netConnection, NetHttpSessionMo
 
        if (pProxyAddr != null)
        {
-               SysLog(NID_NET_HTTP, "The proxy address %ls.", pProxyAddr->GetPointer());
+               SysSecureLog(NID_NET_HTTP, "The proxy address %ls.", pProxyAddr->GetPointer());
 
                __isUserProxy = true;
                pProxyAddress.reset(new (std::nothrow) String(*pProxyAddr));
@@ -587,7 +587,7 @@ _HttpSessionImpl::Construct(const NetConnection& netConnection, NetHttpSessionMo
                        __hostAddress = _HTTP_PROTOCOL_SCHEME + __hostAddress;
                }
 
-               SysLog(NID_NET_HTTP, "The host address is %ls.", __hostAddress.GetPointer());
+               SysSecureLog(NID_NET_HTTP, "The host address is %ls.", __hostAddress.GetPointer());
 
                pHostUri = new (std::nothrow) Uri();
                SysTryReturnResult(NID_NET_HTTP, pHostUri != null, E_OUT_OF_MEMORY,
index 7e93d6d..5d33c2b 100755 (executable)
@@ -509,7 +509,7 @@ _HttpTransactionImpl::Submit(void)
        SysTryReturnResult(NID_NET_HTTP, r == E_SUCCESS && url.IsEmpty() == false,
                                           E_INVALID_ARG, "Failed to get the uri.");
 
-       SysLog(NID_NET_HTTP, "The request uri is %ls.", url.GetPointer());
+       SysSecureLog(NID_NET_HTTP, "The request uri is %ls.", url.GetPointer());
 
        hostAddress = __pHttpSessionImpl->GetHostAddress();
 
@@ -526,10 +526,10 @@ _HttpTransactionImpl::Submit(void)
                        String scheme = _HttpUtility::GetProtocolScheme(hostAddress);
                        scheme.Trim();
                        url = scheme + url;
-                       SysLog(NID_NET_HTTP, "Added the scheme to url(%ls).", url.GetPointer());
+                       SysSecureLog(NID_NET_HTTP, "Added the scheme to url(%ls).", url.GetPointer());
                }
 
-               SysLog(NID_NET_HTTP, "Added the scheme to url(%ls).", url.GetPointer());
+               SysSecureLog(NID_NET_HTTP, "Added the scheme to url(%ls).", url.GetPointer());
        }
 
        //Compare the host of HttpSessoin with the host of uri.