make imv_attestation plugin compile
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 17 Aug 2011 20:59:47 +0000 (22:59 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 8 Sep 2011 10:08:10 +0000 (12:08 +0200)
src/libimcv/plugins/imv_attestation/imv_attestation.c
src/libimcv/plugins/imv_attestation/imv_attestation_state.c

index 946c93d..e60626d 100644 (file)
 
 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
  */
-#define SOLIDUS_UTF = 0x002F
-#define REVERSE_SOLIDUS_UTF = 0x005C
-
-#define IMV_VENDOR_ID  PEN_TCG
-#define IMV_SUBTYPE    PA_SUBTYPE_TCG_PTS
+#define SOLIDUS_UTF                            0x002F
+#define REVERSE_SOLIDUS_UTF            0x005C
 
 static imv_agent_t *imv_attestation;
 
@@ -248,8 +248,8 @@ static TNC_Result send_message(TNC_ConnectionID connection_id)
                        while (enumerator->enumerate(enumerator, &entry))
                        {
                                attr = tcg_pts_attr_req_file_meas_create(false, 
-                                       entry.request_id, delimiter, 
-                                       chunk_create(entry.path,strlen(entry.path)));
+                                                       entry->request_id, delimiter, 
+                                                       chunk_create(entry->path, strlen(entry->path)));
                                attr->set_noskip_flag(attr, TRUE);
                                msg->add_attribute(msg, attr);
                        }
@@ -259,8 +259,8 @@ static TNC_Result send_message(TNC_ConnectionID connection_id)
                        while (enumerator->enumerate(enumerator, &entry))
                        {
                                attr = tcg_pts_attr_req_file_meas_create(true, 
-                                       entry.request_id, delimiter, 
-                                       chunk_create(entry.path,strlen(entry.path)));
+                                                       entry->request_id, delimiter, 
+                                                       chunk_create(entry->path, strlen(entry->path)));
                                attr->set_noskip_flag(attr, TRUE);
                                msg->add_attribute(msg, attr);
                        }
index 2c1a104..7034bc3 100644 (file)
@@ -186,7 +186,7 @@ imv_state_t *imv_attestation_state_create(TNC_ConnectionID connection_id)
                        .set_handshake_state = _set_handshake_state,
                },
                .state = TNC_CONNECTION_STATE_CREATE,
-               .handshake_state = IMC_ATTESTATION_STATE_INIT,
+               .handshake_state = IMV_ATTESTATION_STATE_INIT,
                .rec = TNC_IMV_ACTION_RECOMMENDATION_NO_RECOMMENDATION,
                .eval = TNC_IMV_EVALUATION_RESULT_DONT_KNOW,
        );