Skip to content

Commit

Permalink
FAPI Test: fix maybe unused variable.
Browse files Browse the repository at this point in the history
The compiler errors maybe unused with gcc version 12.2.0 (Debian 12.2.0-14)
are fixed.

Signed-off-by: Juergen Repp <juergen_repp@web.de>
  • Loading branch information
JuergenReppSIT committed Feb 13, 2024
1 parent 2a99130 commit 0a6e05d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ test_fapi_key_create_policy_authorize_pem_sign(FAPI_CONTEXT *context)
{
TSS2_RC r;
char *policy_pcr = "/policy/pol_pcr";
char *policy_file_pcr;
char *policy_file_authorize;
char *policy_file_pcr = NULL;
char *policy_file_authorize = NULL;
char *policy_name_authorize = "/policy/pol_authorize";
// uint8_t policyRef[] = { 1, 2, 3, 4, 5 };
FILE *stream = NULL;
Expand All @@ -72,6 +72,9 @@ test_fapi_key_create_policy_authorize_pem_sign(FAPI_CONTEXT *context)
} else if (strcmp(FAPI_PROFILE, "P_ECC384") == 0) {
policy_file_authorize = TOP_SOURCEDIR "/test/data/fapi/policy/pol_authorize_ecc_pem_sha384.json";
policy_file_pcr = TOP_SOURCEDIR "/test/data/fapi/policy/pol_pcr16_0_ecc_authorized_sha384.json";
} else {
LOG_ERROR("Invalid profile for ECC test: %s", FAPI_PROFILE);
return EXIT_FAILURE;
}
#else
policy_file_pcr = TOP_SOURCEDIR "/test/data/fapi/policy/pol_pcr16_0_rsa_authorized.json";
Expand Down

0 comments on commit 0a6e05d

Please sign in to comment.