Add optional 'group none' transform for child SAs and fix handling of
authortobhe <tobhe@openbsd.org>
Tue, 9 Feb 2021 21:35:48 +0000 (21:35 +0000)
committertobhe <tobhe@openbsd.org>
Tue, 9 Feb 2021 21:35:48 +0000 (21:35 +0000)
commita60f62668082c812f344ac31ff5687e4e18855dc
tree770beb390e6472a10a1fa705a39bb6b862629e26
parent972f549b71a24bab39c35c97f14ab2f72eae5e8d
Add optional 'group none' transform for child SAs and fix handling of
'group none'.   We currently send no transform of type DH by default,
which should be equivalent to explicitly sending a single DH transform
of type 'none'.  However, the proposal matching logic had a bug where
these two would not match, effectively breaking the ability to negotiate
optional PFS.  This commit fixes the bug but continues to send
no DH proposal by default to remain backwards compatible with older
versions.

ok patrick@
sbin/iked/ikev2.c
sbin/iked/parse.y
sbin/iked/policy.c