shortened type name to pts_pcr_transform_t
This commit is contained in:
@@ -173,7 +173,7 @@ struct private_tcg_pts_attr_simple_comp_evid_t {
|
|||||||
/**
|
/**
|
||||||
* Transformation type for PCR
|
* Transformation type for PCR
|
||||||
*/
|
*/
|
||||||
pts_attr_simple_comp_evid_pcr_transform_t transformation;
|
pts_pcr_transform_t transformation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Measurement time
|
* Measurement time
|
||||||
@@ -409,7 +409,7 @@ METHOD(pa_tnc_attr_t, process, status_t,
|
|||||||
|
|
||||||
reader->read_uint8(reader, &transformation);
|
reader->read_uint8(reader, &transformation);
|
||||||
this->transformation = transformation;
|
this->transformation = transformation;
|
||||||
/* TODO: Check the transformation is defined in pts_attr_simple_comp_evid_pcr_transform_t */
|
/* TODO: Check the transformation is defined in pts_pcr_transform_t */
|
||||||
|
|
||||||
reader->read_data(reader, PTS_SIMPLE_COMP_EVID_MEASUREMENT_TIME_SIZE,
|
reader->read_data(reader, PTS_SIMPLE_COMP_EVID_MEASUREMENT_TIME_SIZE,
|
||||||
&this->measurement_time);
|
&this->measurement_time);
|
||||||
@@ -537,14 +537,14 @@ METHOD(tcg_pts_attr_simple_comp_evid_t, set_hash_algorithm, void,
|
|||||||
this->hash_algorithm = hash_algorithm;
|
this->hash_algorithm = hash_algorithm;
|
||||||
}
|
}
|
||||||
|
|
||||||
METHOD(tcg_pts_attr_simple_comp_evid_t, get_pcr_trans, pts_attr_simple_comp_evid_pcr_transform_t,
|
METHOD(tcg_pts_attr_simple_comp_evid_t, get_pcr_trans, pts_pcr_transform_t,
|
||||||
private_tcg_pts_attr_simple_comp_evid_t *this)
|
private_tcg_pts_attr_simple_comp_evid_t *this)
|
||||||
{
|
{
|
||||||
return this->transformation;
|
return this->transformation;
|
||||||
}
|
}
|
||||||
|
|
||||||
METHOD(tcg_pts_attr_simple_comp_evid_t, set_pcr_trans, void,
|
METHOD(tcg_pts_attr_simple_comp_evid_t, set_pcr_trans, void,
|
||||||
private_tcg_pts_attr_simple_comp_evid_t *this, pts_attr_simple_comp_evid_pcr_transform_t transformation)
|
private_tcg_pts_attr_simple_comp_evid_t *this, pts_pcr_transform_t transformation)
|
||||||
{
|
{
|
||||||
this->transformation = transformation;
|
this->transformation = transformation;
|
||||||
}
|
}
|
||||||
@@ -630,7 +630,7 @@ pa_tnc_attr_t *tcg_pts_attr_simple_comp_evid_create(
|
|||||||
pts_attr_req_funct_comp_name_bin_enum_t name,
|
pts_attr_req_funct_comp_name_bin_enum_t name,
|
||||||
u_int32_t extended_pcr,
|
u_int32_t extended_pcr,
|
||||||
pts_meas_algorithms_t hash_algorithm,
|
pts_meas_algorithms_t hash_algorithm,
|
||||||
pts_attr_simple_comp_evid_pcr_transform_t transformation,
|
pts_pcr_transform_t transformation,
|
||||||
chunk_t measurement_time,
|
chunk_t measurement_time,
|
||||||
chunk_t policy_uri,
|
chunk_t policy_uri,
|
||||||
chunk_t pcr_before,
|
chunk_t pcr_before,
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
typedef struct tcg_pts_attr_simple_comp_evid_t tcg_pts_attr_simple_comp_evid_t;
|
typedef struct tcg_pts_attr_simple_comp_evid_t tcg_pts_attr_simple_comp_evid_t;
|
||||||
typedef enum pts_attr_simple_comp_evid_flag_t pts_attr_simple_comp_evid_flag_t;
|
typedef enum pts_attr_simple_comp_evid_flag_t pts_attr_simple_comp_evid_flag_t;
|
||||||
typedef enum pts_attr_simple_comp_evid_pcr_transform_t pts_attr_simple_comp_evid_pcr_transform_t;
|
typedef enum pts_pcr_transform_t pts_pcr_transform_t;
|
||||||
|
|
||||||
#include "tcg_attr.h"
|
#include "tcg_attr.h"
|
||||||
#include "tcg_pts_meas_algo.h"
|
#include "tcg_pts_meas_algo.h"
|
||||||
@@ -50,17 +50,17 @@ enum pts_attr_simple_comp_evid_flag_t {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PTS Simple Component Evidence PCR Transformations
|
* PTS PCR Transformations
|
||||||
*/
|
*/
|
||||||
enum pts_attr_simple_comp_evid_pcr_transform_t {
|
enum pts_pcr_transform_t {
|
||||||
/** No Transformation */
|
/** No Transformation */
|
||||||
PTS_SIMPLE_COMP_EVID_PCR_TRANS_NO = 0,
|
PTS_PCR_TRANSFORM_NO = 0,
|
||||||
/** Hash Value matched PCR size */
|
/** Hash Value matched PCR size */
|
||||||
PTS_SIMPLE_COMP_EVID_PCR_TRANS_MATCH = 1,
|
PTS_PCR_TRANSFORM_MATCH = 1,
|
||||||
/** Hash value shorter than PCR size */
|
/** Hash value shorter than PCR size */
|
||||||
PTS_SIMPLE_COMP_EVID_PCR_TRANS_SHORT = 2,
|
PTS_PCR_TRANSFORM_SHORT = 2,
|
||||||
/** Hash value longer than PCR size */
|
/** Hash value longer than PCR size */
|
||||||
PTS_SIMPLE_COMP_EVID_PCR_TRANS_LONG = 3,
|
PTS_PCR_TRANSFORM_LONG = 3,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -183,7 +183,7 @@ struct tcg_pts_attr_simple_comp_evid_t {
|
|||||||
*
|
*
|
||||||
* @return Transformation type of PCR
|
* @return Transformation type of PCR
|
||||||
*/
|
*/
|
||||||
pts_attr_simple_comp_evid_pcr_transform_t (*get_pcr_trans)(tcg_pts_attr_simple_comp_evid_t *this);
|
pts_pcr_transform_t (*get_pcr_trans)(tcg_pts_attr_simple_comp_evid_t *this);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set PCR Transformation
|
* Set PCR Transformation
|
||||||
@@ -191,7 +191,7 @@ struct tcg_pts_attr_simple_comp_evid_t {
|
|||||||
* @param transformation Transformation type of PCR
|
* @param transformation Transformation type of PCR
|
||||||
*/
|
*/
|
||||||
void (*set_pcr_trans)(tcg_pts_attr_simple_comp_evid_t *this,
|
void (*set_pcr_trans)(tcg_pts_attr_simple_comp_evid_t *this,
|
||||||
pts_attr_simple_comp_evid_pcr_transform_t transformation);
|
pts_pcr_transform_t transformation);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Measurement Time
|
* Get Measurement Time
|
||||||
@@ -301,7 +301,7 @@ pa_tnc_attr_t* tcg_pts_attr_simple_comp_evid_create(pts_attr_simple_comp_evid_fl
|
|||||||
pts_attr_req_funct_comp_name_bin_enum_t name,
|
pts_attr_req_funct_comp_name_bin_enum_t name,
|
||||||
u_int32_t extended_pcr,
|
u_int32_t extended_pcr,
|
||||||
pts_meas_algorithms_t hash_algorithm,
|
pts_meas_algorithms_t hash_algorithm,
|
||||||
pts_attr_simple_comp_evid_pcr_transform_t transformation,
|
pts_pcr_transform_t transformation,
|
||||||
chunk_t measurement_time,
|
chunk_t measurement_time,
|
||||||
chunk_t policy_uri,
|
chunk_t policy_uri,
|
||||||
chunk_t pcr_before,
|
chunk_t pcr_before,
|
||||||
|
|||||||
Reference in New Issue
Block a user