android: Handle ITA PA-TNC attributes
This commit is contained in:
@@ -30,6 +30,8 @@
|
|||||||
#include <ietf/ietf_attr_installed_packages.h>
|
#include <ietf/ietf_attr_installed_packages.h>
|
||||||
#include <ietf/ietf_attr_product_info.h>
|
#include <ietf/ietf_attr_product_info.h>
|
||||||
#include <ietf/ietf_attr_string_version.h>
|
#include <ietf/ietf_attr_string_version.h>
|
||||||
|
#include <ita/ita_attr.h>
|
||||||
|
#include <ita/ita_attr_get_settings.h>
|
||||||
#include <os_info/os_info.h>
|
#include <os_info/os_info.h>
|
||||||
|
|
||||||
#include <tncif_pa_subtypes.h>
|
#include <tncif_pa_subtypes.h>
|
||||||
@@ -282,6 +284,22 @@ static void handle_ietf_attribute(pen_type_t attr_type, pa_tnc_attr_t *attr,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle an ITA attribute
|
||||||
|
*/
|
||||||
|
static void handle_ita_attribute(pen_type_t attr_type, pa_tnc_attr_t *attr,
|
||||||
|
imc_msg_t *out_msg)
|
||||||
|
{
|
||||||
|
if (attr_type.type == ITA_ATTR_GET_SETTINGS)
|
||||||
|
{
|
||||||
|
ita_attr_get_settings_t *attr_cast;
|
||||||
|
|
||||||
|
attr_cast = (ita_attr_get_settings_t*)attr;
|
||||||
|
add_measurement((pen_type_t){ PEN_ITA, ITA_ATTR_SETTINGS },
|
||||||
|
out_msg, attr_cast->create_enumerator(attr_cast));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* see section 3.8.3 of TCG TNC IF-IMC Specification 1.3
|
* see section 3.8.3 of TCG TNC IF-IMC Specification 1.3
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user