Changeset 42208 in vbox for trunk/src/VBox
- Timestamp:
- Jul 18, 2012 1:22:38 PM (13 years ago)
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MediumImpl.cpp
r42125 r42208 3773 3773 && !itPln->second.isEmpty()) 3774 3774 { 3775 /* Encrypt the plain secret. If that does not work (i.e. no settings key specified),3776 * just use the encrypted secret (if there is any). */3775 /* Encrypt the plain secret. If that does not work (i.e. no or wrong settings key 3776 * specified), just use the encrypted secret (if there is any). */ 3777 3777 int rc = m->pVirtualBox->encryptSetting(itPln->second, &strCiphertext); 3778 NOREF(rc);3779 fHaveInitiatorSecretEncrypted = true;3778 if (RT_SUCCESS(rc)) 3779 fHaveInitiatorSecretEncrypted = true; 3780 3780 } 3781 3781 for (settings::StringsMap::const_iterator it = m->mapProperties.begin(); … … 3793 3793 data.properties[name] = value; 3794 3794 } 3795 if (fHaveInitiatorSecretEncrypted)3796 data.properties["InitiatorSecretEncrypted"] = strCiphertext;3797 }3795 } 3796 if (fHaveInitiatorSecretEncrypted) 3797 data.properties["InitiatorSecretEncrypted"] = strCiphertext; 3798 3798 3799 3799 /* only for base media */ -
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r42178 r42208 205 205 threadAsyncEvent(NIL_RTTHREAD), 206 206 pAsyncEventQ(NULL), 207 pAutostartDb(NULL) 207 pAutostartDb(NULL), 208 fSettingsCipherKeySet(false) 208 209 { 209 210 } … … 2169 2170 } 2170 2171 2171 /* fill with random data to have a minimal length */2172 /* fill with random data to have a minimal length (salt) */ 2172 2173 if (i < aCiphertextSize) 2173 2174 {
Note:
See TracChangeset
for help on using the changeset viewer.