store detected improper OS settings in database
[strongswan.git] / src / libpts / plugins / imc_attestation / imc_attestation_state.h
index 9e7a132..e4fca71 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <imc/imc_state.h>
 #include <pts/pts.h>
+#include <pts/components/pts_component.h>
 #include <pts/components/pts_comp_evidence.h>
 #include <library.h>
 
@@ -47,19 +48,29 @@ struct imc_attestation_state_t {
        pts_t* (*get_pts)(imc_attestation_state_t *this);
 
        /**
-        * Add an entry to the PA-TNC attribute cache list
+        * Create and add an entry to the list of Functional Components
         *
-        * @param attr                          PA-TNC attribute entry
+        * @param name                          Component Functional Name
+        * @param depth                         Sub-component Depth
+        * @return                                      created functional component instance or NULL
         */
-       void (*add_attr)(imc_attestation_state_t *this, pa_tnc_attr_t *attr);
+       pts_component_t* (*create_component)(imc_attestation_state_t *this,
+                                                        pts_comp_func_name_t *name, u_int32_t depth);
 
        /**
-        * Removes next entry from the PA-TNC attribute cash list and returns it
+        * Add an entry to the Component Evidence cache list
         *
-        * @param attr                          Next PA-TNC attribute entry
+        * @param evid                          Component Evidence entry
+        */
+       void (*add_evidence)(imc_attestation_state_t *this, pts_comp_evidence_t *evid);
+
+       /**
+        * Removes next entry from the Component Evidence cache list and returns it
+        *
+        * @param evid                          Next Component Evidence entry
         * @return                                      TRUE if next entry is available
         */
-       bool (*next_attr)(imc_attestation_state_t *this, pa_tnc_attr_t** attr);
+       bool (*next_evidence)(imc_attestation_state_t *this, pts_comp_evidence_t** evid);
 
 };