stefanberger / swtpm

Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface.
Other
567 stars 136 forks source link

swtpm_ioctl: Repeatedly call PTM_GET_INFO for long responses #803

Closed stefanberger closed 1 year ago

stefanberger commented 1 year ago

Fix the display of long responses that require calling PTM_GET_INFO multiple times to get parts of the response from increasing offsets until the whole response has been received.

Long responses are only returned when libtpms has profiles support and several flags are passed to PTM_GET_INFO.