proposal: Add selection flags to clone() method
This avoids having to call strip_dh() in child_cfg_t::get_proposals(). It also inverts the ALLOW_PRIVATE flag (i.e. makes it SKIP_PRIVATE) so nothing has to be supplied to clone complete proposals.
This commit is contained in:
@@ -610,7 +610,7 @@ METHOD(ike_sa_t, set_proposal, void,
|
||||
private_ike_sa_t *this, proposal_t *proposal)
|
||||
{
|
||||
DESTROY_IF(this->proposal);
|
||||
this->proposal = proposal->clone(proposal);
|
||||
this->proposal = proposal->clone(proposal, 0);
|
||||
}
|
||||
|
||||
METHOD(ike_sa_t, set_message_id, void,
|
||||
|
||||
Reference in New Issue
Block a user