From 9115040f545cb9a4b9efaf739e2fd63ad5418d8e Mon Sep 17 00:00:00 2001 From: Sabin Rapan Date: Wed, 28 Jul 2021 12:51:28 +0300 Subject: [PATCH] Fix selection of TPM2 key gen tools The comments on TPM2TSS_GENKEY and CREATE_TPM2_KEY say the former can only create keys, while the latter can import them too, but we used them the other way around. This causes the auth-hwtpm test to fail on machines just with tpm2-tss-engine installed. Tested on Ubuntu 20.04 with openssl and tpm2-tss. Signed-off-by: Sabin Rapan --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index f636291b..562c5c38 100644 --- a/configure.ac +++ b/configure.ac @@ -734,8 +734,8 @@ fi AM_CONDITIONAL(TEST_HWTPM, [ test "$test_hwtpm" = "yes" ]) AM_CONDITIONAL(TEST_SWTPM, [ test "$SWTPM_IOCTL" != "" ]) -AM_CONDITIONAL(TEST_TPM2_IMPORT, [ test "$TPM2TSS_GENKEY" != "" ]) -AM_CONDITIONAL(TEST_TPM2_CREATE, [ test "$CREATE_TPM2_KEY" != "" ]) +AM_CONDITIONAL(TEST_TPM2_CREATE, [ test "$TPM2TSS_GENKEY" != "" ]) +AM_CONDITIONAL(TEST_TPM2_IMPORT, [ test "$CREATE_TPM2_KEY" != "" ]) test_pkcs11= if test "$pkcs11_support" != ""; then -- 2.50.1