tpm: Add socket module

Add SocketDev struct. Methods in SocketDev will be used to read & write
to Ctrl channel created by swtpm.

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
Co-authored-by: Sean Yoo <t-seanyoo@microsoft.com>
This commit is contained in:
Praveen K Paladugu
2022-09-09 03:31:56 +00:00
committed by Rob Bradford
parent e3213c8a79
commit 58b902d036
4 changed files with 153 additions and 0 deletions

View File

@@ -8,5 +8,7 @@ version = "0.1.0"
[dependencies]
anyhow = "1.0.56"
byteorder = "1.4.3"
libc = "0.2.133"
log = "0.4.14"
thiserror = "1.0.30"
vmm-sys-util = "0.10.0"