Changeset 42212 in vbox for trunk/src/VBox
- Timestamp:
- Jul 18, 2012 3:17:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r42210 r42212 2041 2041 { 2042 2042 storeSettingsKey(aValue); 2043 int vrc =decryptSettings();2044 return RT_SUCCESS(vrc) ? S_OK : E_FAIL;2043 decryptSettings(); 2044 return S_OK; 2045 2045 } 2046 2046 … … 2052 2052 if (SUCCEEDED(hrc)) 2053 2053 { 2054 Bstr bstrName;2055 pMedium->COMGETTER(Name)(bstrName.asOutParam());2056 2054 Utf8Str strPlaintext; 2057 2055 int rc = decryptSetting(&strPlaintext, bstrCipher); … … 2181 2179 { 2182 2180 RTRandBytes(aBytes, aCiphertextSize - i); 2183 for ( ; i < aCiphertextSize; i++)2184 { 2185 aCiphertext[i] = aBytes[ i] ^ m->SettingsCipherKey[j];2181 for (int k = 0; i < aCiphertextSize; i++, k++) 2182 { 2183 aCiphertext[i] = aBytes[k] ^ m->SettingsCipherKey[j]; 2186 2184 if (++j >= sizeof(m->SettingsCipherKey)) 2187 2185 j = 0;
Note:
See TracChangeset
for help on using the changeset viewer.