VirtualBox

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


Ignore:
Timestamp:
May 4, 2022 8:02:56 AM (3 years ago)
Author:
vboxsync
Message:

Main/Console: Implement log encryption for encrypted VMs, bugref:9955

File:
1 edited

Legend:

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

    r94793 r94804  
    6767
    6868#include <iprt/uuid.h>
     69#include <iprt/log.h>
    6970#include <iprt/memsafer.h>
    7071#include <VBox/RemoteDesktop/VRDE.h>
     
    947948    /** @} */
    948949
     950#ifdef VBOX_WITH_FULL_VM_ENCRYPTION
     951    /** @name Encrypted log interface
     952     * @{ */
     953    static DECLCALLBACK(int)    i_logEncryptedOpen(PCRTLOGOUTPUTIF pIf, void *pvUser, const char *pszFilename, uint32_t fFlags);
     954    static DECLCALLBACK(int)    i_logEncryptedClose(PCRTLOGOUTPUTIF pIf, void *pvUser);
     955    static DECLCALLBACK(int)    i_logEncryptedDelete(PCRTLOGOUTPUTIF pIf, void *pvUser, const char *pszFilename);
     956    static DECLCALLBACK(int)    i_logEncryptedRename(PCRTLOGOUTPUTIF pIf, void *pvUser, const char *pszFilenameOld,
     957                                                     const char *pszFilenameNew, uint32_t fFlags);
     958    static DECLCALLBACK(int)    i_logEncryptedQuerySize(PCRTLOGOUTPUTIF pIf, void *pvUser, uint64_t *pcbSize);
     959    static DECLCALLBACK(int)    i_logEncryptedWrite(PCRTLOGOUTPUTIF pIf, void *pvUser, const void *pvBuf,
     960                                                    size_t cbWrite, size_t *pcbWritten);
     961    static DECLCALLBACK(int)    i_logEncryptedFlush(PCRTLOGOUTPUTIF pIf, void *pvUser);
     962    /** @} */
     963#endif
     964
    949965    bool mSavedStateDataLoaded : 1;
    950966
     
    11011117    /** @} */
    11021118
     1119#ifdef VBOX_WITH_FULL_VM_ENCRYPTION
     1120    /** Flag whether the log is encrypted. */
     1121    bool                                m_fEncryptedLog;
     1122    /** The file handle of the encrypted log. */
     1123    RTVFSFILE                           m_hVfsFileLog;
     1124    /** The logging output interface for encrypted logs. */
     1125    RTLOGOUTPUTIF                       m_LogOutputIf;
     1126    /** The log file key ID. */
     1127    Utf8Str                             m_strLogKeyId;
     1128    /** The log file key store. */
     1129    Utf8Str                             m_strLogKeyStore;
     1130#endif
     1131
    11031132#ifdef VBOX_WITH_DRAG_AND_DROP
    11041133    HGCMSVCEXTHANDLE m_hHgcmSvcExtDragAndDrop;
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