|
|
897056 |
From 29f7b2855a9d1378bb8a757564e1f0367a84cb70 Mon Sep 17 00:00:00 2001
|
|
|
897056 |
From: Juergen Repp <juergen.repp@sit.fraunhofer.de>
|
|
|
897056 |
Date: Tue, 3 Aug 2021 16:24:41 +0200
|
|
|
897056 |
Subject: [PATCH 03/23] FAPI: Remove fauly free of an unused field.
|
|
|
897056 |
|
|
|
897056 |
The field out_data in IFAPI_Data_EncryptDecrypt was not used but freed in Fapi_Encrypt.
|
|
|
897056 |
|
|
|
897056 |
Signed-off-by: Juergen Repp <juergen.repp@sit.fraunhofer.de>
|
|
|
897056 |
---
|
|
|
897056 |
src/tss2-fapi/api/Fapi_Encrypt.c | 1 -
|
|
|
897056 |
src/tss2-fapi/fapi_int.h | 1 -
|
|
|
897056 |
2 files changed, 2 deletions(-)
|
|
|
897056 |
|
|
|
897056 |
diff --git a/src/tss2-fapi/api/Fapi_Encrypt.c b/src/tss2-fapi/api/Fapi_Encrypt.c
|
|
|
897056 |
index 2e892351..af8e2c58 100644
|
|
|
897056 |
--- a/src/tss2-fapi/api/Fapi_Encrypt.c
|
|
|
897056 |
+++ b/src/tss2-fapi/api/Fapi_Encrypt.c
|
|
|
897056 |
@@ -405,7 +405,6 @@ error_cleanup:
|
|
|
897056 |
SAFE_FREE(tpmCipherText);
|
|
|
897056 |
SAFE_FREE(command->keyPath);
|
|
|
897056 |
SAFE_FREE(command->in_data);
|
|
|
897056 |
- SAFE_FREE(command->out_data);
|
|
|
897056 |
ifapi_session_clean(context);
|
|
|
897056 |
LOG_TRACE("finished");
|
|
|
897056 |
return r;
|
|
|
897056 |
diff --git a/src/tss2-fapi/fapi_int.h b/src/tss2-fapi/fapi_int.h
|
|
|
897056 |
index 90707da1..13c0333e 100644
|
|
|
897056 |
--- a/src/tss2-fapi/fapi_int.h
|
|
|
897056 |
+++ b/src/tss2-fapi/fapi_int.h
|
|
|
897056 |
@@ -386,7 +386,6 @@ typedef struct {
|
|
|
897056 |
uint8_t const *in_data;
|
|
|
897056 |
size_t in_dataSize;
|
|
|
897056 |
IFAPI_OBJECT *key_object; /**< The IPAPI object for the encryption key */
|
|
|
897056 |
- uint8_t *out_data; /**< The output of symmetric encrypt/decryption */
|
|
|
897056 |
ESYS_TR key_handle; /**< The ESYS handle of the encryption key */
|
|
|
897056 |
size_t numBytes; /**< The number of bytes of a ESYS request */
|
|
|
897056 |
size_t decrypt; /**< Switch whether to encrypt or decrypt */
|
|
|
897056 |
--
|
|
|
897056 |
2.34.3
|
|
|
897056 |
|