Changeset 91595 in vbox for trunk/src/VBox/Devices/Security
- Timestamp:
- Oct 6, 2021 3:58:33 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Security/DrvTpmEmuTpms.cpp
r91347 r91595 32 32 #include <iprt/zip.h> 33 33 34 #include <iprt/formats/tpm.h>35 36 34 #include <libtpms/tpm_library.h> 37 35 #include <libtpms/tpm_error.h> … … 39 37 #include <libtpms/tpm_nvfilename.h> 40 38 39 #include <iprt/formats/tpm.h> 40 41 #if 0 41 42 #include <unistd.h> 43 #endif 42 44 #include <stdlib.h> 43 45 … … 163 165 uint32_t cbRespBuf = 0; 164 166 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); 166 168 if (RT_LIKELY(rcTpm == TPM_SUCCESS)) 167 169 { … … 367 369 PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "TpmVersion|BufferSize", ""); 368 370 371 #if 0 369 372 TPMLIB_SetDebugFD(STDERR_FILENO); 370 373 TPMLIB_SetDebugLevel(~0); 374 #endif 371 375 372 376 /*
Note:
See TracChangeset
for help on using the changeset viewer.