Changeset 54591 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Mar 2, 2015 7:55:29 PM (10 years ago)
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ConsoleImpl.h
r54106 r54591 5 5 6 6 /* 7 * Copyright (C) 2005-201 4Oracle Corporation7 * Copyright (C) 2005-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 351 351 ULONG aMaxDowntime, 352 352 ComPtr<IProgress> &aProgress); 353 HRESULT addDiskEncryptionPassword(const com::Utf8Str &aId, const com::Utf8Str &aPassword, 354 BOOL aClearOnSuspend); 355 HRESULT removeDiskEncryptionPassword(const com::Utf8Str &aId); 356 HRESULT clearAllDiskEncryptionPasswords(); 353 357 354 358 void notifyNatDnsChange(PUVM pUVM, const char *pszDevice, ULONG ulInstanceMax); … … 585 589 SecretKey() { } 586 590 587 SecretKey(uint8_t *pbKey, size_t cbKey )591 SecretKey(uint8_t *pbKey, size_t cbKey, bool fRemoveOnSuspend) 588 592 : m_cRefs(0), 589 593 m_pbKey(pbKey), 590 m_cbKey(cbKey) 594 m_cbKey(cbKey), 595 m_fRemoveOnSuspend(fRemoveOnSuspend) 591 596 { } 592 597 … … 597 602 m_pbKey = NULL; 598 603 m_cbKey = 0; 604 m_fRemoveOnSuspend = false; 599 605 } 600 606 … … 605 611 /** Size of the key in bytes. */ 606 612 size_t m_cbKey; 613 /** Flag whether to remove the key on suspend. */ 614 bool m_fRemoveOnSuspend; 607 615 }; 608 616 … … 810 818 size_t *pcbKey); 811 819 static DECLCALLBACK(int) i_pdmIfSecKey_KeyRelease(PPDMISECKEY pInterface, const char *pszId); 820 static DECLCALLBACK(int) i_pdmIfSecKey_PasswordRetain(PPDMISECKEY pInterface, const char *pszId, const char **ppszPassword); 821 static DECLCALLBACK(int) i_pdmIfSecKey_PasswordRelease(PPDMISECKEY pInterface, const char *pszId); 812 822 813 823 static DECLCALLBACK(int) i_pdmIfSecKeyHlp_KeyMissingNotify(PPDMISECKEYHLP pInterface); … … 852 862 * @{ */ 853 863 HRESULT i_consoleParseDiskEncryption(const char *psz, const char **ppszEnd); 854 HRESULT i_configureEncryptionForDisk(const char *pszUuid);864 HRESULT i_configureEncryptionForDisk(const Utf8Str &aId); 855 865 HRESULT i_clearDiskEncryptionKeysOnAllAttachments(void); 856 866 int i_consoleParseKeyValue(const char *psz, const char **ppszEnd, -
trunk/src/VBox/Main/include/MediumImpl.h
r54486 r54591 7 7 8 8 /* 9 * Copyright (C) 2008-201 4Oracle Corporation9 * Copyright (C) 2008-2015 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 276 276 HRESULT reset(ComPtr<IProgress> &aProgress); 277 277 HRESULT changeEncryption(const com::Utf8Str &aNewPassword, const com::Utf8Str &aOldPassword, 278 const com::Utf8Str &aCipher, ComPtr<IProgress> &aProgress);278 const com::Utf8Str &aCipher, const com::Utf8Str &aNewPasswordId, ComPtr<IProgress> &aProgress); 279 279 280 280 // Private internal nmethods … … 324 324 const uint8_t **ppbKey, size_t *pcbKey); 325 325 static DECLCALLBACK(int) i_vdCryptoKeyRelease(void *pvUser, const char *pszId); 326 static DECLCALLBACK(int) i_vdCryptoKeyStoreGetPassword(void *pvUser, const char **ppszPassword); 326 static DECLCALLBACK(int) i_vdCryptoKeyStorePasswordRetain(void *pvUser, const char *pszId, const char **ppszPassword); 327 static DECLCALLBACK(int) i_vdCryptoKeyStorePasswordRelease(void *pvUser, const char *pszId); 327 328 static DECLCALLBACK(int) i_vdCryptoKeyStoreSave(void *pvUser, const void *pvKeyStore, size_t cbKeyStore); 328 329 static DECLCALLBACK(int) i_vdCryptoKeyStoreReturnParameters(void *pvUser, const char *pszCipher,
Note:
See TracChangeset
for help on using the changeset viewer.