* [tpm2] Re: sending commands to simulator
@ 2019-10-25 22:10 Tadeusz Struk
0 siblings, 0 replies; 2+ messages in thread
From: Tadeusz Struk @ 2019-10-25 22:10 UTC (permalink / raw)
To: tpm2
[-- Attachment #1: Type: text/plain, Size: 372 bytes --]
On 10/25/19 12:19 PM, Roberts, William C wrote:
> if [ "$raw" == "yes" ]; then
> echo -n "$cmd" | nc -N "$ip" "$port"
> else
> echo -n "$cmd" | xxd -p -r | nc -N "$ip" "$port"
> fi
Looks good. Would be even better if we make sure that the response from
the mssim (4 bytes) is 0x00 00 00 00 (success) and print an error msg
otherwise.
--
Tadeusz
^ permalink raw reply [flat|nested] 2+ messages in thread
* [tpm2] Re: sending commands to simulator
@ 2019-10-28 13:28 Roberts, William C
0 siblings, 0 replies; 2+ messages in thread
From: Roberts, William C @ 2019-10-28 13:28 UTC (permalink / raw)
To: tpm2
[-- Attachment #1: Type: text/plain, Size: 807 bytes --]
> -----Original Message-----
> From: Struk, Tadeusz
> Sent: Friday, October 25, 2019 5:11 PM
> To: Roberts, William C <william.c.roberts(a)intel.com>; tpm2(a)lists.01.org
> Subject: Re: [tpm2] sending commands to simulator
>
> On 10/25/19 12:19 PM, Roberts, William C wrote:
> > if [ "$raw" == "yes" ]; then
> > echo -n "$cmd" | nc -N "$ip" "$port"
> > else
> > echo -n "$cmd" | xxd -p -r | nc -N "$ip" "$port"
> > fi
>
> Looks good. Would be even better if we make sure that the response from the
> mssim (4 bytes) is 0x00 00 00 00 (success) and print an error msg otherwise.
Yeah that would be nice. The simulator always returns 0 unless you give it a garbage
Command, at that point the simulator prints an error message so at least you know.
>
> --
> Tadeusz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-28 13:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-25 22:10 [tpm2] Re: sending commands to simulator Tadeusz Struk
2019-10-28 13:28 Roberts, William C
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.