unit-tests: Make childless initiation configurable
This commit is contained in:
@@ -100,11 +100,14 @@ static ike_cfg_t *create_ike_cfg(bool initiator, exchange_test_sa_conf_t *conf)
|
|||||||
ike_cfg_t *ike_cfg;
|
ike_cfg_t *ike_cfg;
|
||||||
char *proposal = NULL;
|
char *proposal = NULL;
|
||||||
|
|
||||||
ike_cfg = ike_cfg_create(&ike);
|
|
||||||
if (conf)
|
if (conf)
|
||||||
{
|
{
|
||||||
|
ike.childless = initiator ? conf->initiator.childless
|
||||||
|
: conf->responder.childless;
|
||||||
proposal = initiator ? conf->initiator.ike : conf->responder.ike;
|
proposal = initiator ? conf->initiator.ike : conf->responder.ike;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ike_cfg = ike_cfg_create(&ike);
|
||||||
if (proposal)
|
if (proposal)
|
||||||
{
|
{
|
||||||
ike_cfg->add_proposal(ike_cfg,
|
ike_cfg->add_proposal(ike_cfg,
|
||||||
|
|||||||
@@ -109,6 +109,8 @@ struct exchange_test_sa_conf_t {
|
|||||||
char *ike;
|
char *ike;
|
||||||
/** ESP proposal */
|
/** ESP proposal */
|
||||||
char *esp;
|
char *esp;
|
||||||
|
/** Support for childless IKE_SAs */
|
||||||
|
childless_t childless;
|
||||||
} initiator, responder;
|
} initiator, responder;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user