/** * see section 3.8.8 of TCG TNC IF-IMC Specification 1.3 */ TNC_Result TNC_IMC_Terminate(TNC_IMCID imc_id) { if (!imc_swid) { DBG1(DBG_IMC, "IMC \"%s\" has not been initialized", imc_name); return TNC_RESULT_NOT_INITIALIZED; } libpts_deinit(); imc_swid->destroy(imc_swid); imc_swid = NULL; return TNC_RESULT_SUCCESS; }
/** * see section 3.8.9 of TCG TNC IF-IMV Specification 1.3 */ TNC_Result TNC_IMV_Terminate(TNC_IMVID imv_id) { if (!imv_attestation) { DBG1(DBG_IMV, "IMV \"%s\" has not been initialized", imv_name); return TNC_RESULT_NOT_INITIALIZED; } if (pts_creds) { pts_credmgr->remove_set(pts_credmgr, pts_creds->get_set(pts_creds)); pts_creds->destroy(pts_creds); } DESTROY_IF(pts_db); DESTROY_IF(pts_credmgr); libpts_deinit(); imv_attestation->destroy(imv_attestation); imv_attestation = NULL; return TNC_RESULT_SUCCESS; }