Moved structures related to File Measurement to pts.h
This commit is contained in:
committed by
Andreas Steffen
parent
8a59adad57
commit
a1ff28f582
@@ -77,17 +77,6 @@ static linked_list_t *file_list, *directory_list;
|
|||||||
*/
|
*/
|
||||||
static u_int16_t request_id_counter = 0;
|
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
|
* see section 3.7.1 of TCG TNC IF-IMV Specification 1.2
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -25,17 +25,8 @@ typedef struct tcg_pts_attr_file_meas_t tcg_pts_attr_file_meas_t;
|
|||||||
|
|
||||||
#include "tcg_attr.h"
|
#include "tcg_attr.h"
|
||||||
#include "pa_tnc/pa_tnc_attr.h"
|
#include "pa_tnc/pa_tnc_attr.h"
|
||||||
|
/* TODO: for struct file_meas_entry_t */
|
||||||
typedef struct file_meas_entry_t file_meas_entry_t;
|
#include "pts/pts.h"
|
||||||
|
|
||||||
/**
|
|
||||||
* File Measurement entry
|
|
||||||
*/
|
|
||||||
struct file_meas_entry_t {
|
|
||||||
chunk_t measurement;
|
|
||||||
u_int16_t file_name_len;
|
|
||||||
chunk_t file_name;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class implementing the TCG PTS File Measurement attribute
|
* Class implementing the TCG PTS File Measurement attribute
|
||||||
|
|||||||
Reference in New Issue
Block a user