- baschtel

- works initiating, results in shared secret
This commit is contained in:
Martin Willi
2005-11-18 16:29:14 +00:00
parent 90ef6620a2
commit daa1c00e9f
8 changed files with 441 additions and 37 deletions
+9 -1
View File
@@ -148,7 +148,15 @@ static bool is_initiator(private_ike_sa_id_t *this)
*/
static bool switch_initiator(private_ike_sa_id_t *this)
{
return (this->is_initiator_flag = !this->is_initiator_flag);
if (this->is_initiator_flag)
{
this->is_initiator_flag = FALSE;
}
else
{
this->is_initiator_flag = TRUE;
}
return this->is_initiator_flag;
}