All of lore.kernel.org
 help / color / mirror / Atom feed
* [tpm2] FAPI delete issue
@ 2020-08-12 15:33 Phani Srinivas
  0 siblings, 0 replies; only message in thread
From: Phani Srinivas @ 2020-08-12 15:33 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 1295 bytes --]

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


[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 5533 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-12 15:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12 15:33 [tpm2] FAPI delete issue Phani Srinivas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.