diff --git a/examples/wrap/wrap_test.c b/examples/wrap/wrap_test.c index da311d4..aaa6de1 100644 --- a/examples/wrap/wrap_test.c +++ b/examples/wrap/wrap_test.c @@ -259,7 +259,7 @@ int TPM2_Wrapper_TestArgs(void* userCtx, int argc, char *argv[]) (word32)tpmSession.handle.hndl); /* set session for authorization of the storage key */ - rc = wolfTPM2_SetAuthSession(&dev, 1, &tpmSession, + rc = wolfTPM2_SetAuthSession(&dev, 0, &tpmSession, (TPMA_SESSION_decrypt | TPMA_SESSION_encrypt | TPMA_SESSION_continueSession)); if (rc != 0) goto exit; }