]> git.ipfire.org Git - people/ms/strongswan.git/commit
charon-tkm: Reset stale nonce contexts
authorReto Buerki <reet@codelabs.ch>
Thu, 23 Apr 2015 07:41:12 +0000 (09:41 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 4 May 2015 16:07:51 +0000 (18:07 +0200)
commit8cdc563258db508ce7a848f63f68cbe37b4f40e0
tree0dad5c55dc9f3ea7af733be8238f39a07f797c85
parenta8ca50e6358cf245806ebbf15e83039bd9daf085
charon-tkm: Reset stale nonce contexts

If the nonce generator detects a stale nonce upon destroy(), it resets
the context in the TKM and releases associated resources in the ID
manager and chunk map.

Also, do not acquire the nonce context ID in tkm_nonceg_create function
but rather when the nonce is actually created by get_nonce().

The nonces created with get_nonce must also be registered in the chunk map.
src/charon-tkm/src/tkm/tkm_nonceg.c
src/charon-tkm/tests/keymat_tests.c