tpm2-util: mark two functions as static that are not used outside of tpm2-util.c
This commit is contained in:
@@ -5976,7 +5976,8 @@ int tpm2_undefine_nv_index(
|
||||
return 0;
|
||||
}
|
||||
|
||||
int tpm2_define_nvpcr_nv_index(
|
||||
#if HAVE_OPENSSL
|
||||
static int tpm2_define_nvpcr_nv_index(
|
||||
Tpm2Context *c,
|
||||
const Tpm2Handle *session,
|
||||
TPM2_HANDLE nv_index,
|
||||
@@ -6095,7 +6096,7 @@ int tpm2_define_nvpcr_nv_index(
|
||||
return 1;
|
||||
}
|
||||
|
||||
int tpm2_extend_nvpcr_nv_index(
|
||||
static int tpm2_extend_nvpcr_nv_index(
|
||||
Tpm2Context *c,
|
||||
TPM2_HANDLE nv_index,
|
||||
const Tpm2Handle *nv_handle,
|
||||
@@ -6136,6 +6137,7 @@ int tpm2_extend_nvpcr_nv_index(
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
int tpm2_read_nv_index(
|
||||
Tpm2Context *c,
|
||||
|
||||
@@ -304,8 +304,6 @@ int tpm2_tpm2b_public_to_fingerprint(const TPM2B_PUBLIC *public, void **ret_fing
|
||||
|
||||
int tpm2_define_policy_nv_index(Tpm2Context *c, const Tpm2Handle *session, TPM2_HANDLE requested_nv_index, const TPM2B_DIGEST *write_policy, TPM2_HANDLE *ret_nv_index, Tpm2Handle **ret_nv_handle, TPM2B_NV_PUBLIC *ret_nv_public);
|
||||
int tpm2_write_policy_nv_index(Tpm2Context *c, const Tpm2Handle *policy_session, TPM2_HANDLE nv_index, const Tpm2Handle *nv_handle, const TPM2B_DIGEST *policy_digest);
|
||||
int tpm2_define_nvpcr_nv_index(Tpm2Context *c, const Tpm2Handle *session, TPM2_HANDLE nv_index, TPMI_ALG_HASH algorithm, Tpm2Handle **ret_nv_handle);
|
||||
int tpm2_extend_nvpcr_nv_index(Tpm2Context *c, TPM2_HANDLE nv_index, const Tpm2Handle *nv_handle, const struct iovec *digest);
|
||||
int tpm2_undefine_nv_index(Tpm2Context *c, const Tpm2Handle *session, TPM2_HANDLE nv_index, const Tpm2Handle *nv_handle);
|
||||
int tpm2_read_nv_index(Tpm2Context *c, const Tpm2Handle *session, TPM2_HANDLE nv_index, const Tpm2Handle *nv_handle, struct iovec *ret_value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user