The auth-certificate test always sets --key-password=password, and when
a TPM2 key has 'emptyauth' the IBM TSS code was trying the empty auth
first, as it should. But the Esys code was always trying the password,
and then prompting the user; the user had to just press enter.
Try empty auth first if the key says so.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
{
TSS2_RC r;
- if (certinfo->tpm2->need_userauth || certinfo->password) {
+ if (certinfo->tpm2->need_userauth) {
char *pass = NULL;
if (certinfo->password) {