ike-sa-manager: Add a method to register/check out new IKE_SAs
authorTobias Brunner <tobias@strongswan.org>
Fri, 15 Jan 2021 15:09:59 +0000 (16:09 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 12 Feb 2021 14:49:08 +0000 (15:49 +0100)
commit5d97af58942325018550c338cd02a683009bfcbe
treea379921872fb04661e7b1b3cc7ad661d8e062430
parentbde5bd47bdafc587932b0f3b3c105f7167f745ec
ike-sa-manager: Add a method to register/check out new IKE_SAs

This way, jobs for new IKE_SAs (created via create_new()) may be
scheduled/queued before checkin() is called.  If they run before
that happens, they will now correctly block in checkout() instead of
doing nothing because the IKE_SA was not found.
src/libcharon/sa/ike_sa_manager.c
src/libcharon/sa/ike_sa_manager.h