ikev1: Get and set the lifetimes of the selected proposal/transform
authorTobias Brunner <tobias@strongswan.org>
Thu, 6 Feb 2020 14:52:06 +0000 (15:52 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 6 Mar 2020 09:31:30 +0000 (10:31 +0100)
commite0dd36c9c7303d81c0b48a9b76642a05fd4eb0e2
treed1dcb9123ce9582552e83e46cdd1f3e7d3e825a4
parent1c6b43b8eae62c57ec5d4be3da1c2b428d6f607a
ikev1: Get and set the lifetimes of the selected proposal/transform

Previously, we simply used the lifetimes of the first
proposal/transform, which is not correct if the initiator uses different
lifetimes in its proposals/transforms.
src/libcharon/encoding/payloads/proposal_substructure.c
src/libcharon/encoding/payloads/proposal_substructure.h
src/libcharon/encoding/payloads/sa_payload.c
src/libcharon/encoding/payloads/sa_payload.h
src/libcharon/sa/ikev1/tasks/aggressive_mode.c
src/libcharon/sa/ikev1/tasks/main_mode.c
src/libcharon/sa/ikev1/tasks/quick_mode.c