VirtualBox

Ignore:
Timestamp:
Mar 19, 2015 2:42:38 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: 7676: Runtime UI: Disk Encryption (DE) support: Changing way to detect encrypted mediums to latest provided API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r54795 r54849  
    24242424            /* Get the attachment medium base: */
    24252425            const CMedium medium = attachment.GetMedium().GetBase();
    2426             /* Update the map with this medium if necessary: */
    2427             const QString strKeyId = medium.GetProperty("CRYPT/KeyId");
    2428             if (!strKeyId.isEmpty())
    2429                 encryptedMediums.insert(strKeyId, medium.GetId());
     2426            /* Update the map with this medium if it's encrypted: */
     2427            QString strCipher;
     2428            const QString strPasswordId = medium.GetEncryptionSettings(strCipher);
     2429            if (medium.isOk())
     2430                encryptedMediums.insert(strPasswordId, medium.GetId());
    24302431        }
    24312432    }
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