build PA-TNC message only if there are PA-TNC attributes to send

This commit is contained in:
Andreas Steffen
2011-12-18 17:55:20 +01:00
parent a98262ff6e
commit 458c52d29d
3 changed files with 43 additions and 20 deletions
@@ -34,14 +34,14 @@
/**
* Process a TCG PTS attribute
*
* @param msg PA-TNC message to be built
* @param attr_list list of PA-TNC attriubutes to be built
* @param attestation_state attestation state of a given connection
* @param supported_algorithms supported PTS measurement algorithms
* @param supported_dh_groups supported DH groups
* @param pts_db PTS configuration database
* @return TRUE if successful
*/
bool imv_attestation_build(pa_tnc_msg_t *msg,
bool imv_attestation_build(linked_list_t *attr_list,
imv_attestation_state_t *attestation_state,
pts_meas_algorithms_t supported_algorithms,
pts_dh_group_t supported_dh_groups,