Moved structures related to File Measurement to pts.h

This commit is contained in:
Sansar Choinyambuu
2011-09-08 12:08:13 +02:00
committed by Andreas Steffen
parent 8a59adad57
commit a1ff28f582
2 changed files with 2 additions and 22 deletions
@@ -77,17 +77,6 @@ static linked_list_t *file_list, *directory_list;
*/
static u_int16_t request_id_counter = 0;
/* TODO: Move the struct to some header file? Duplicate with imc_attestation*/
/**
* Struct to hold file or directory name with the request ID for Request File Measurement attribute
*/
typedef struct measurement_req_entry_t measurement_req_entry_t;
struct measurement_req_entry_t {
char *path;
u_int16_t request_id;
};
/**
* see section 3.7.1 of TCG TNC IF-IMV Specification 1.2
*/
+2 -11
View File
@@ -25,17 +25,8 @@ typedef struct tcg_pts_attr_file_meas_t tcg_pts_attr_file_meas_t;
#include "tcg_attr.h"
#include "pa_tnc/pa_tnc_attr.h"
typedef struct file_meas_entry_t file_meas_entry_t;
/**
* File Measurement entry
*/
struct file_meas_entry_t {
chunk_t measurement;
u_int16_t file_name_len;
chunk_t file_name;
};
/* TODO: for struct file_meas_entry_t */
#include "pts/pts.h"
/**
* Class implementing the TCG PTS File Measurement attribute