mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
proposal: Make all key exchange transforms optional in ESP/AH proposals
This commit is contained in:
parent
fb6b8c833b
commit
9cc5f4a511
@ -322,7 +322,7 @@ static bool select_algo(private_proposal_t *this, proposal_t *other,
|
|||||||
uint16_t alg1, alg2, ks1, ks2;
|
uint16_t alg1, alg2, ks1, ks2;
|
||||||
bool found = FALSE, optional = FALSE;
|
bool found = FALSE, optional = FALSE;
|
||||||
|
|
||||||
if (type == KEY_EXCHANGE_METHOD)
|
if (is_ke_transform(type))
|
||||||
{
|
{
|
||||||
optional = this->protocol == PROTO_ESP || this->protocol == PROTO_AH;
|
optional = this->protocol == PROTO_ESP || this->protocol == PROTO_AH;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user