Modified some unnecessary todo statement
authorSansar Choinyambuu <schoinya@hsr.ch>
Mon, 24 Oct 2011 09:47:00 +0000 (11:47 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 28 Nov 2011 13:39:51 +0000 (14:39 +0100)
src/libimcv/plugins/imc_attestation/imc_attestation.c
src/libimcv/plugins/imv_attestation/imv_attestation.c
src/libimcv/plugins/imv_attestation/imv_attestation_process.c

index 7862dda..297850a 100644 (file)
@@ -103,8 +103,6 @@ TNC_Result TNC_IMC_NotifyConnectionChange(TNC_IMCID imc_id,
                                                                                  TNC_ConnectionState new_state)
 {
        imc_state_t *state;
-       /* TODO: Not used so far */
-       //imc_attestation_state_t *attestation_state;
 
        if (!imc_attestation)
        {
index 1a1358f..30ddfc7 100644 (file)
@@ -170,8 +170,6 @@ TNC_Result TNC_IMV_NotifyConnectionChange(TNC_IMVID imv_id,
                        }
                        attestation_state = (imv_attestation_state_t*)state;
 
-                       /* TODO: Get some configurations */
-
                        return TNC_RESULT_SUCCESS;
                default:
                        return imv_attestation->change_state(imv_attestation, connection_id,
index c79e024..b38274b 100644 (file)
@@ -151,8 +151,8 @@ bool imv_attestation_process(pa_tnc_attr_t *attr, linked_list_t *attr_list,
                        aik = attr_cast->get_aik(attr_cast);
                        if (!aik)
                        {
-                               /* TODO generate error attribute */
-                               break;
+                               DBG1(DBG_IMV, "AIK unavailable");
+                               return FALSE;
                        }
                        if (aik->get_type(aik) == CERT_X509)
                        {