- fixed bugs
This commit is contained in:
@@ -136,6 +136,7 @@ static status_t initiate_connection (private_initiator_init_t *this, char *name)
|
||||
status_t status;
|
||||
randomizer_t *randomizer;
|
||||
init_config_t *init_config;
|
||||
sa_config_t *sa_config;
|
||||
|
||||
this->logger->log(this->logger, CONTROL, "Initializing connection %s",name);
|
||||
|
||||
@@ -151,6 +152,18 @@ static status_t initiate_connection (private_initiator_init_t *this, char *name)
|
||||
/* configuration can be set */
|
||||
this->ike_sa->set_init_config(this->ike_sa,init_config);
|
||||
|
||||
/* get sa_config_t object */
|
||||
status = charon->configuration_manager->get_sa_config_for_name(charon->configuration_manager,name,&sa_config);
|
||||
|
||||
if (status != SUCCESS)
|
||||
{
|
||||
this->logger->log(this->logger, ERROR | MORE, "Could not retrieve SA configuration informations for %s",name);
|
||||
return INVALID_ARG;
|
||||
}
|
||||
|
||||
/* configuration can be set */
|
||||
this->ike_sa->set_sa_config(this->ike_sa,sa_config);
|
||||
|
||||
this->ike_sa->set_other_host(this->ike_sa,init_config->get_other_host_clone(init_config));
|
||||
this->ike_sa->set_my_host(this->ike_sa,init_config->get_my_host_clone(init_config));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user