* Maximum PA-TNC message size for this TNCCS connection
*/
u_int32_t max_msg_len;
+
+ /**
+ * TCG Platform Trust Service (PTS)
+ */
+ pts_t *pts;
};
METHOD(imc_state_t, get_connection_id, TNC_ConnectionID,
METHOD(imc_state_t, destroy, void,
private_imc_android_state_t *this)
{
+ this->pts->destroy(this->pts);
free(this);
}
+METHOD(imc_android_state_t, get_pts, pts_t*,
+ private_imc_android_state_t *this)
+{
+ return this->pts;
+}
+
/**
* Described in header.
*/
.get_result = _get_result,
.destroy = _destroy,
},
+ .get_pts = _get_pts,
},
.state = TNC_CONNECTION_STATE_CREATE,
.result = TNC_IMV_EVALUATION_RESULT_DONT_KNOW,
.connection_id = connection_id,
+ .pts = pts_create(TRUE),
);
return &this->public.interface;
#define IMC_ANDROID_STATE_H_
#include <imc/imc_state.h>
+#include <pts/pts.h>
typedef struct imc_android_state_t imc_android_state_t;
* imc_state_t interface
*/
imc_state_t interface;
+
+ /**
+ * Get TCG Platform Trust Service (PTS) object
+ */
+ pts_t *(*get_pts)(imc_android_state_t *this);
};
/**