mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-02-05 05:59:18 +00:00
swtpm: also log control channel commands
This commit is contained in:
parent
60afebf116
commit
ccd1aeb15b
@ -59,6 +59,7 @@
|
||||
#include "swtpm_nvfile.h"
|
||||
#include "locality.h"
|
||||
#include "mainloop.h"
|
||||
#include "swtpm_debug.h"
|
||||
|
||||
/* local variables */
|
||||
|
||||
@ -475,6 +476,9 @@ int ctrlchannel_process_fd(int fd,
|
||||
if (n <= 0) {
|
||||
goto err_socket;
|
||||
}
|
||||
|
||||
TPM_PrintAll(" Ctrl Cmd:", " ", msg.msg_iov->iov_base, n);
|
||||
|
||||
if ((size_t)n < sizeof(input.cmd)) {
|
||||
goto err_bad_input;
|
||||
}
|
||||
@ -788,6 +792,8 @@ int ctrlchannel_process_fd(int fd,
|
||||
}
|
||||
|
||||
send_resp:
|
||||
TPM_PrintAll(" Ctrl Rsp:", " ", output.body, out_len);
|
||||
|
||||
n = write(fd, output.body, out_len);
|
||||
if (n < 0) {
|
||||
logprintf(STDERR_FILENO,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user