Hello All,
Just would like to update that, I didn't see the below reported issue on the HW.
I was able to clear the TPM with authorization password set at time of provisioning.
Regards
Phani Srinivas S
From: Phani Srinivas
Sent: Wednesday, August 12, 2020 9:04 PM
To: tpm2(a)lists.01.org
Subject: FAPI delete issue
Hello All,
Having using FAPI API's for a while for some exploratory work, I have provisioning the
FAPI with a password using the following call and used macro set to PASSWORD set as
"1234"
rc = Fapi_Provision(global_fapi_context,PASSWORD,PASSWORD,PASSWORD);
Again tried to clear the TPM using the following calls after doing the FAPI_Initialize.
rc = Fapi_SetAuthCB(global_fapi_context, auth_callback, NULL);
if (rc != TSS2_RC_SUCCESS){
printf("Failed to set the callback \n");
}
printf("clearing the TPM \n");
rc = Fapi_Delete(global_fapi_context, "/");
if (rc != TSS2_RC_SUCCESS){
printf("Failed to clear TPM\n");
ret = ERR_FAIL;
}
But I see the following error,
ERROR:esys:src/tss2-esys/esys_iutil.c:1070:esys_GetResourceObject() Error: Esys handle
does not exist (70018).
ERROR:fapi:src/tss2-fapi/fapi_util.c:380:ifapi_set_auth() Set auth value. ErrorCode
(0x00070018)
ERROR:fapi:src/tss2-fapi/api/Fapi_Delete.c:377:Fapi_Delete_Finish() ErrorCode (0x00070018)
Set owner authorization
ERROR:fapi:src/tss2-fapi/api/Fapi_Delete.c:89:Fapi_Delete() ErrorCode (0x00070018)
Entity_Delete
Failed to clear TPM
Any thoughts what went wrong here.
Regards
Phani Srinivas S
Show replies by date