this->supported_types = malloc(size);
memcpy(this->supported_types, supported_types, size);
}
+ DBG2(DBG_TNC, "IMC %u supports %u message types", this->id, type_count);
}
METHOD(imc_t, type_supported, bool,
imc->get_name(imc));
return FALSE;
}
+ this->imcs->insert_last(this->imcs, imc);
+ this->next_imc_id++;
+
if (imc->provide_bind_function(imc->get_id(imc), TNC_TNCC_BindFunction)
!= TNC_RESULT_SUCCESS)
{
imc->get_name(imc));
return FALSE;
}
- this->imcs->insert_last(this->imcs, imc);
- this->next_imc_id++;
return TRUE;
}
this->supported_types = malloc(size);
memcpy(this->supported_types, supported_types, size);
}
+ DBG2(DBG_TNC, "IMV %u supports %u message types", this->id, type_count);
}
METHOD(imv_t, type_supported, bool,
imv->get_name(imv));
return FALSE;
}
+ this->imvs->insert_last(this->imvs, imv);
+ this->next_imv_id++;
+
if (imv->provide_bind_function(imv->get_id(imv), TNC_TNCS_BindFunction)
!= TNC_RESULT_SUCCESS)
{
imv->get_name(imv));
return FALSE;
}
- this->imvs->insert_last(this->imvs, imv);
- this->next_imv_id++;
return TRUE;
}
#include <tnc/tncifimc.h>
#include <library.h>
-/typedef struct imc_t imc_t;
+typedef struct imc_t imc_t;
/**
* Controls a single Integrity Measurement Collector (IMC)