Interpret private use BEET mode notify only if we know we are talking to strongSwan

This commit is contained in:
Martin Willi 2010-01-07 09:37:38 +00:00
parent a5a0bcaa04
commit b3349c5694
1 changed files with 9 additions and 1 deletions

View File

@ -611,7 +611,15 @@ static void handle_notify(private_child_create_t *this, notify_payload_t *notify
this->mode = MODE_TRANSPORT;
break;
case USE_BEET_MODE:
this->mode = MODE_BEET;
if (this->ike_sa->supports_extension(this->ike_sa, EXT_STRONGSWAN))
{ /* handle private use notify only if we know its meaning */
this->mode = MODE_BEET;
}
else
{
DBG1(DBG_IKE, "received a notify strongSwan uses for BEET "
"mode, but peer implementation unknown, skipped");
}
break;
case IPCOMP_SUPPORTED:
{