ESAPI: Move variable initialization to utils
Move the initialization of the auth variable to
the util function that provides these.
This turns the auth parameter of the gen_auths
function into an actual return parameter.
Signed-off-by: Andreas Fuchs <andreas.fuchs@sit.fraunhofer.de>
diff --git a/src/tss2-esys/api/Esys_EncryptDecrypt2.c b/src/tss2-esys/api/Esys_EncryptDecrypt2.c
index 3a42774..6ebb0dc 100644
--- a/src/tss2-esys/api/Esys_EncryptDecrypt2.c
+++ b/src/tss2-esys/api/Esys_EncryptDecrypt2.c
@@ -180,7 +180,7 @@
const TPM2B_IV *ivIn)
{
TSS2_RC r;
- TSS2L_SYS_AUTH_COMMAND auths = { 0 };
+ TSS2L_SYS_AUTH_COMMAND auths;
RSRC_NODE_T *keyHandleNode;
if (esysContext == NULL) {