equal
deleted
inserted
replaced
84 const JavaStorageApplicationList_t& aAttributes, |
84 const JavaStorageApplicationList_t& aAttributes, |
85 const int aIndex, |
85 const int aIndex, |
86 std::string& aChain) |
86 std::string& aChain) |
87 { |
87 { |
88 int i = 1; |
88 int i = 1; |
89 wstring chain = L""; |
|
90 bool foundPart = true; |
89 bool foundPart = true; |
91 const wstring attrPrefix = L"MIDlet-Certificate-"; |
90 const wstring attrPrefix = L"MIDlet-Certificate-"; |
92 JavaStorageEntry attr; |
91 JavaStorageEntry attr; |
93 |
92 |
94 do |
93 do |
117 attr.setEntry(VALUE, L""); |
116 attr.setEntry(VALUE, L""); |
118 entryFinder = (*appIter).find(attr); // Get its value. |
117 entryFinder = (*appIter).find(attr); // Get its value. |
119 |
118 |
120 if (entryFinder != (*appIter).end()) |
119 if (entryFinder != (*appIter).end()) |
121 { |
120 { |
122 chain.append((*entryFinder).entryValue()); |
121 char* tmp = JavaCommonUtils::wstringToUtf8((*entryFinder).entryValue()); |
|
122 aChain.append(JavaCommonUtils::base64decode(tmp)); |
|
123 delete [] tmp; |
123 } |
124 } |
124 |
125 |
125 found = true; |
126 found = true; |
126 break; |
127 break; |
127 } |
128 } |
133 } |
134 } |
134 |
135 |
135 i++; |
136 i++; |
136 } |
137 } |
137 while (foundPart); |
138 while (foundPart); |
|
139 } |
138 |
140 |
139 char* tempStr = JavaCommonUtils::wstringToUtf8(chain); |
|
140 aChain.append(tempStr); |
|
141 delete [] tempStr; |
|
142 } |
|
143 void StorageHandler::findEntry(const JavaStorageApplicationList_t& queryResult, |
141 void StorageHandler::findEntry(const JavaStorageApplicationList_t& queryResult, |
144 const std::wstring& eName, |
142 const std::wstring& eName, |
145 std::wstring& eValue) |
143 std::wstring& eValue) |
146 { |
144 { |
147 if (queryResult.size() > 0) |
145 if (queryResult.size() > 0) |