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