proposal: Strip redundant integrity algos for ESP proposals only

This commit is contained in:
Martin Willi
2013-10-11 10:15:21 +02:00
parent 0576412989
commit f0c59e1cf8
+3
View File
@@ -429,6 +429,8 @@ static void check_proposal(private_proposal_t *this)
e->destroy(e);
}
if (this->protocol == PROTO_ESP)
{
e = create_enumerator(this, ENCRYPTION_ALGORITHM);
while (e->enumerate(e, &alg, &ks))
{
@@ -454,6 +456,7 @@ static void check_proposal(private_proposal_t *this)
}
e->destroy(e);
}
}
if (this->protocol == PROTO_AH || this->protocol == PROTO_ESP)
{