- changed ike_sa_id interface

- definition of private ike_sa methods
This commit is contained in:
Martin Willi
2005-11-18 13:59:21 +00:00
parent 4f2c92d8e2
commit 7b3d138919
7 changed files with 123 additions and 88 deletions
+13 -1
View File
@@ -173,12 +173,24 @@ static status_t verify(private_ike_header_t *this)
/* unsupported exchange type */
return FAILED;
}
if ((this->initiator_spi == 0) && (this->responder_spi != 0))
if (this->initiator_spi == 0)
{
/* initiator spi not set */
return FAILED;
}
if ((this->responder_spi == 0) && (!this->flags.initiator))
{
/* must be original initiator*/
return FAILED;
}
if ((this->responder_spi == 0) && (this->flags.response))
{
/* must be request*/
return FAILED;
}
/* verification of version is not done in here */
return SUCCESS;