Updated ITA-IMA finalize messages
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 29 Apr 2014 16:57:55 +0000 (18:57 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 1 May 2014 06:16:50 +0000 (08:16 +0200)
src/libpts/plugins/imv_attestation/imv_attestation_agent.c
src/libpts/pts/components/ita/ita_comp_ima.c

index 9e59709..1e4955c 100644 (file)
@@ -796,7 +796,7 @@ METHOD(imv_agent_if_t, solicit_recommendation, TNC_Result,
                                                attestation_state->finalize_components(attestation_state,
                                                                                                                           result);
                                                result->write_data(result,
-                                                               chunk_from_str("; Pending component evidence"));
+                                                               chunk_from_str("; pending component evidence"));
                                                result->write_uint8(result, '\0');
                                                result_buf = result->get_buf(result);
                                                result_str = result_buf.ptr;
index e13fe14..42f86a0 100644 (file)
@@ -1153,22 +1153,22 @@ METHOD(pts_component_t, finalize, bool,
                        /* close registration */
                        this->is_ima_registering = FALSE;
 
-                       written = snprintf(pos, len, "registered boot aggregate evidence "
-                                                          "measurement; ");
+                       written = snprintf(pos, len, "registered IMA boot aggregate "
+                                                          "evidence measurement; ");
                        pos += written;
                        len -= written;
                }
                if (this->count)
                {
-                       snprintf(pos, len, "processed %d file evidence measurements: "
+                       snprintf(pos, len, "processed %d IMA file evidence measurements: "
                                         "%d ok, %d unknown, %d differ, %d failed",
                                         this->count, this->count_ok, this->count_unknown,
                                         this->count_differ, this->count_failed);
-                       success = !this->count_differ && !this->count_failed;
                }
                else
                {
-                       snprintf(pos, len, "no boot aggregate evidence measurement");
+                       snprintf(pos, len, "no IMA file evidence measurements");
+            success = FALSE;
                }
        }
        else