Raise an alert if CHILD_SA proposals mismatch
This commit is contained in:
@@ -109,6 +109,8 @@ enum alert_t {
|
|||||||
ALERT_RETRANSMIT_RECEIVE,
|
ALERT_RETRANSMIT_RECEIVE,
|
||||||
/** IKE proposals do not match, argument is linked_list_t of proposal_t */
|
/** IKE proposals do not match, argument is linked_list_t of proposal_t */
|
||||||
ALERT_PROPOSAL_MISMATCH_IKE,
|
ALERT_PROPOSAL_MISMATCH_IKE,
|
||||||
|
/** CHILD proposals do not match, argument is linked_list_t of proposal_t */
|
||||||
|
ALERT_PROPOSAL_MISMATCH_CHILD,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -377,6 +377,8 @@ static status_t select_and_install(private_child_create_t *this,
|
|||||||
if (this->proposal == NULL)
|
if (this->proposal == NULL)
|
||||||
{
|
{
|
||||||
DBG1(DBG_IKE, "no acceptable proposal found");
|
DBG1(DBG_IKE, "no acceptable proposal found");
|
||||||
|
charon->bus->alert(charon->bus, ALERT_PROPOSAL_MISMATCH_CHILD,
|
||||||
|
this->proposals);
|
||||||
return FAILED;
|
return FAILED;
|
||||||
}
|
}
|
||||||
this->other_spi = this->proposal->get_spi(this->proposal);
|
this->other_spi = this->proposal->get_spi(this->proposal);
|
||||||
|
|||||||
Reference in New Issue
Block a user