javacommons/security/src/utils/storagehandler.cpp
branchRCL_3
changeset 17 0fd27995241b
parent 14 04becd199f91
child 25 ae942d28ec0e
--- a/javacommons/security/src/utils/storagehandler.cpp	Fri Apr 30 10:40:48 2010 +0300
+++ b/javacommons/security/src/utils/storagehandler.cpp	Tue May 11 16:07:20 2010 +0300
@@ -86,7 +86,6 @@
     std::string& aChain)
 {
     int i = 1;
-    wstring chain = L"";
     bool foundPart = true;
     const wstring attrPrefix = L"MIDlet-Certificate-";
     JavaStorageEntry attr;
@@ -119,7 +118,9 @@
 
                 if (entryFinder != (*appIter).end())
                 {
-                    chain.append((*entryFinder).entryValue());
+                    char* tmp = JavaCommonUtils::wstringToUtf8((*entryFinder).entryValue());
+                    aChain.append(JavaCommonUtils::base64decode(tmp));
+                    delete [] tmp;
                 }
 
                 found = true;
@@ -135,11 +136,8 @@
         i++;
     }
     while (foundPart);
+}
 
-    char* tempStr = JavaCommonUtils::wstringToUtf8(chain);
-    aChain.append(tempStr);
-    delete [] tempStr;
-}
 void StorageHandler::findEntry(const JavaStorageApplicationList_t& queryResult,
                                const std::wstring& eName,
                                std::wstring& eValue)