VirtualBox

Changeset 54837 in vbox


Ignore:
Timestamp:
Mar 18, 2015 4:28:31 PM (10 years ago)
Author:
vboxsync
Message:

Medium: Return VBOX_E_PASSWORD_INCORRECT when changing the encryption setting for an image with encryption configured

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MediumImpl.cpp

    r54835 r54837  
    89618961                                           false /* fCreateKeyStore */);
    89628962                vrc = VDFilterAdd(pDisk, "CRYPT", VD_FILTER_FLAGS_READ, CryptoSettingsRead.vdFilterIfaces);
    8963                 if (RT_FAILURE(vrc))
     8963                if (vrc == VERR_VD_PASSWORD_INCORRECT)
     8964                    throw setError(VBOX_E_PASSWORD_INCORRECT,
     8965                                   tr("The password to decrypt the image is incorrect"));
     8966                else if (RT_FAILURE(vrc))
    89648967                    throw setError(VBOX_E_INVALID_OBJECT_STATE,
    89658968                                   tr("Failed to load the decryption filter: %s"),
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette