minor fixes in imc_attestation.c
[strongswan.git] / src / libpts / plugins / imv_attestation / attest_db.h
index 80a8f4c..e32a368 100644 (file)
@@ -91,7 +91,7 @@ struct attest_db_t {
         * @param create                if TRUE create database entry if it doesn't exist
         * @return                              TRUE if successful
         */
-       bool (*set_key)(attest_db_t *this, char *key, bool create);
+       bool (*set_key)(attest_db_t *this, chunk_t key, bool create);
 
        /**
         * Set primary key of the AIK to be queried
@@ -126,6 +126,21 @@ struct attest_db_t {
        void (*set_algo)(attest_db_t *this, pts_meas_algorithms_t algo);
 
        /**
+        * Set that the IMA-specific SHA-1 template hash be computed
+        */
+       void (*set_ima)(attest_db_t *this);
+
+       /**
+        * Set that relative filenames are to be used
+        */
+       void (*set_relative)(attest_db_t *this);
+
+       /**
+        * Set the sequence number
+        */
+       void (*set_sequence)(attest_db_t *this, int seq_no);
+
+       /**
         * Set owner [user/host] of an AIK
         *
         * @param owner                 user/host name