When sending out a proposal we create an SA/SPI for the Child SAs if we
authorpatrick <patrick@openbsd.org>
Tue, 5 Dec 2017 09:06:53 +0000 (09:06 +0000)
committerpatrick <patrick@openbsd.org>
Tue, 5 Dec 2017 09:06:53 +0000 (09:06 +0000)
commit99f2fe774a96792a28bd9d5f11fff50cff036c93
tree1586a4340412a9801da3da457f28b02a4114159a
parentb1ce0da17da254cc15b8aff25b3d55d3c7a82cec
When sending out a proposal we create an SA/SPI for the Child SAs if we
are an initiator and store the information on the proposal, because we
only had one proposal so far.  This changes the code to only create one
SA on the first proposal and then apply the SPI to all other proposals
as well.

ok markus@
sbin/iked/ikev2.c