VirtualBox

Changeset 94782 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
May 2, 2022 12:18:59 PM (3 years ago)
Author:
vboxsync
Message:

Main/MachineImpl: Implement the change encryption functionality for a VM (untested), bugref:9955

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/MachineImpl.h

    r94747 r94782  
    5454
    5555#include <iprt/time.h>
     56#ifdef VBOX_WITH_FULL_VM_ENCRYPTION
     57# include <VBox/VBoxCryptoIf.h>
     58# include <iprt/vfs.h>
     59#endif
    5660
    5761#include <list>
     
    869873    class DeleteConfigTask;
    870874    void i_deleteConfigHandler(DeleteConfigTask &task);
     875
     876#ifdef VBOX_WITH_FULL_VM_ENCRYPTION
     877    class ChangeEncryptionTask;
     878    void i_changeEncryptionHandler(ChangeEncryptionTask &task);
     879    HRESULT i_changeEncryptionForComponent(ChangeEncryptionTask &task, const com::Utf8Str strDirectory,
     880                                           const com::Utf8Str strFilePattern, com::Utf8Str &strKeyStore,
     881                                           com::Utf8Str &strKeyId, int iCipherMode);
     882    int i_findFiles(std::list<com::Utf8Str> &lstFiles, const com::Utf8Str &strDir,
     883                    const com::Utf8Str &strPattern);
     884    int i_createIoStreamForFile(const char *pszFilename, PCVBOXCRYPTOIF pCryptoIf,
     885                                const char *pszKeyStore, const char *pszPassword,
     886                                uint64_t fOpen, PRTVFSIOSTREAM phVfsIos);
     887#endif
    871888
    872889    friend class Appliance;
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