vtpmmgr: Fix owner_auth & srk_auth parsing
authorJason Andryuk <jandryuk@gmail.com>
Thu, 6 May 2021 13:59:21 +0000 (09:59 -0400)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 10 May 2021 13:50:33 +0000 (14:50 +0100)
commitc8d8a1e2e6a1fdba45dd9e9fb993d79d1e5a097c
tree0b4e40aa87b67d6b89393da77b6c5422f5e95437
parent7f4276fad8f0bfba5bb3fd012bf2df51c05fcf02
vtpmmgr: Fix owner_auth & srk_auth parsing

Argument parsing only matches to before ':' and then the string with
leading ':' is passed to parse_auth_string which fails to parse.  Extend
the length to include the seperator in the match.

While here, switch the seperator to "=".  The man page documented "="
and the other tpm.* arguments already use "=".  Since it didn't work
before, we don't need to worry about backwards compatibility.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Daniel P. Smith <dpsmith@apertussolutions.com>
stubdom/vtpmmgr/init.c