communicate DELETE state to IMCs and IMVs
This commit is contained in:
parent
719c33b41a
commit
8a284e0454
|
@ -395,6 +395,16 @@ METHOD(tls_t, get_eap_msk, chunk_t,
|
|||
METHOD(tls_t, destroy, void,
|
||||
private_tnccs_11_t *this)
|
||||
{
|
||||
if (this->is_server)
|
||||
{
|
||||
charon->imvs->notify_connection_change(charon->imvs,
|
||||
this->connection_id, TNC_CONNECTION_STATE_DELETE);
|
||||
}
|
||||
else
|
||||
{
|
||||
charon->imcs->notify_connection_change(charon->imcs,
|
||||
this->connection_id, TNC_CONNECTION_STATE_DELETE);
|
||||
}
|
||||
charon->tnccs->remove_connection(charon->tnccs, this->connection_id);
|
||||
this->mutex->destroy(this->mutex);
|
||||
DESTROY_IF(this->batch);
|
||||
|
|
|
@ -626,6 +626,16 @@ METHOD(tls_t, get_eap_msk, chunk_t,
|
|||
METHOD(tls_t, destroy, void,
|
||||
private_tnccs_20_t *this)
|
||||
{
|
||||
if (this->is_server)
|
||||
{
|
||||
charon->imvs->notify_connection_change(charon->imvs,
|
||||
this->connection_id, TNC_CONNECTION_STATE_DELETE);
|
||||
}
|
||||
else
|
||||
{
|
||||
charon->imcs->notify_connection_change(charon->imcs,
|
||||
this->connection_id, TNC_CONNECTION_STATE_DELETE);
|
||||
}
|
||||
charon->tnccs->remove_connection(charon->tnccs, this->connection_id);
|
||||
this->state_machine->destroy(this->state_machine);
|
||||
this->mutex->destroy(this->mutex);
|
||||
|
|
Loading…
Reference in New Issue