make imv_attestation plugin compile

This commit is contained in:
Andreas Steffen
2011-09-08 12:08:10 +02:00
parent 13e708b0b8
commit ad4866e831
2 changed files with 10 additions and 10 deletions
@@ -42,14 +42,14 @@
static const char imv_name[] = "Attestation"; static const char imv_name[] = "Attestation";
#define IMV_VENDOR_ID PEN_TCG
#define IMV_SUBTYPE PA_SUBTYPE_TCG_PTS
/** /**
* UTF-8 encoding of the character used to delimiter the filename * UTF-8 encoding of the character used to delimiter the filename
*/ */
#define SOLIDUS_UTF = 0x002F #define SOLIDUS_UTF 0x002F
#define REVERSE_SOLIDUS_UTF = 0x005C #define REVERSE_SOLIDUS_UTF 0x005C
#define IMV_VENDOR_ID PEN_TCG
#define IMV_SUBTYPE PA_SUBTYPE_TCG_PTS
static imv_agent_t *imv_attestation; static imv_agent_t *imv_attestation;
@@ -248,8 +248,8 @@ static TNC_Result send_message(TNC_ConnectionID connection_id)
while (enumerator->enumerate(enumerator, &entry)) while (enumerator->enumerate(enumerator, &entry))
{ {
attr = tcg_pts_attr_req_file_meas_create(false, attr = tcg_pts_attr_req_file_meas_create(false,
entry.request_id, delimiter, entry->request_id, delimiter,
chunk_create(entry.path,strlen(entry.path))); chunk_create(entry->path, strlen(entry->path)));
attr->set_noskip_flag(attr, TRUE); attr->set_noskip_flag(attr, TRUE);
msg->add_attribute(msg, attr); msg->add_attribute(msg, attr);
} }
@@ -259,8 +259,8 @@ static TNC_Result send_message(TNC_ConnectionID connection_id)
while (enumerator->enumerate(enumerator, &entry)) while (enumerator->enumerate(enumerator, &entry))
{ {
attr = tcg_pts_attr_req_file_meas_create(true, attr = tcg_pts_attr_req_file_meas_create(true,
entry.request_id, delimiter, entry->request_id, delimiter,
chunk_create(entry.path,strlen(entry.path))); chunk_create(entry->path, strlen(entry->path)));
attr->set_noskip_flag(attr, TRUE); attr->set_noskip_flag(attr, TRUE);
msg->add_attribute(msg, attr); msg->add_attribute(msg, attr);
} }
@@ -186,7 +186,7 @@ imv_state_t *imv_attestation_state_create(TNC_ConnectionID connection_id)
.set_handshake_state = _set_handshake_state, .set_handshake_state = _set_handshake_state,
}, },
.state = TNC_CONNECTION_STATE_CREATE, .state = TNC_CONNECTION_STATE_CREATE,
.handshake_state = IMC_ATTESTATION_STATE_INIT, .handshake_state = IMV_ATTESTATION_STATE_INIT,
.rec = TNC_IMV_ACTION_RECOMMENDATION_NO_RECOMMENDATION, .rec = TNC_IMV_ACTION_RECOMMENDATION_NO_RECOMMENDATION,
.eval = TNC_IMV_EVALUATION_RESULT_DONT_KNOW, .eval = TNC_IMV_EVALUATION_RESULT_DONT_KNOW,
); );