ike-init: Make nonceg a member of ike_init struct
authorReto Buerki <reet@codelabs.ch>
Thu, 23 Apr 2015 09:19:24 +0000 (11:19 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 4 May 2015 16:07:51 +0000 (18:07 +0200)
commit0b308faf6d546e01f7cb58db1377d4c26a5ee26b
tree95261b195a73ca84739dea1ad5ee078b2ab56d50
parent72376234cbc449b062c68a24837aeefacad44ade
ike-init: Make nonceg a member of ike_init struct

This allows to control the life-cycle of a nonce in the context of the
ike init task. In the TKM use-case the nonce generator cannot be
destroyed before the ike init task is finalized, otherwise the created
nonce is detected as stale.
src/libcharon/sa/ikev2/tasks/ike_init.c