+12
−0
+13
−0
+33
−0
Loading
Per documentation at: https://github.com/tpm2-software/tpm2-pkcs11/blob/master/docs/FAPI.md the ESAPI support for tpm2-pkcs11 creates a fundamentally different package, so split it into two new attributes: tpm2-pkcs11-esapi and tpm2-pkcs11-fapi. The existing package is unchanged, supporting both FAPI and esysdb, and also requiring TPM2_PKCS11_BACKEND=fapi to be exported to use FAPI. The tpm2-pkcs11-esapi attribute has fapi support compiled out and uses esysdb all the time. The tpm2-pkcs11-fapi attribute takes the extra step of applying a patch that causes tpm2-pkcs11 to default to using FAPI, without needing to export TPM2_PKCS11_BACKEND=fapi. However, TPM2_PKCS11_BACKEND=esysdb can still be exported and will work.