VirtualBox

Changeset 91595 in vbox for trunk/src/VBox/Devices/Security


Ignore:
Timestamp:
Oct 6, 2021 3:58:33 PM (3 years ago)
Author:
vboxsync
Message:

Devices/DrvTpmEmuTpms: Some Windows build fixes, bugref:10075

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Security/DrvTpmEmuTpms.cpp

    r91347 r91595  
    3232#include <iprt/zip.h>
    3333
    34 #include <iprt/formats/tpm.h>
    35 
    3634#include <libtpms/tpm_library.h>
    3735#include <libtpms/tpm_error.h>
     
    3937#include <libtpms/tpm_nvfilename.h>
    4038
     39#include <iprt/formats/tpm.h>
     40
     41#if 0
    4142#include <unistd.h>
     43#endif
    4244#include <stdlib.h>
    4345
     
    163165    uint32_t cbRespBuf = 0;
    164166    uint32_t cbRespActual = 0;
    165     TPM_RESULT rcTpm = TPMLIB_Process(&pbRespBuf, &cbRespActual, &cbRespBuf, (uint8_t *)pvCmd, cbCmd);
     167    TPM_RESULT rcTpm = TPMLIB_Process(&pbRespBuf, &cbRespActual, &cbRespBuf, (uint8_t *)pvCmd, (uint32_t)cbCmd);
    166168    if (RT_LIKELY(rcTpm == TPM_SUCCESS))
    167169    {
     
    367369    PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "TpmVersion|BufferSize", "");
    368370
     371#if 0
    369372    TPMLIB_SetDebugFD(STDERR_FILENO);
    370373    TPMLIB_SetDebugLevel(~0);
     374#endif
    371375
    372376    /*
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