charon-tkm: Store remote SPI in SAD
authorReto Buerki <reet@codelabs.ch>
Thu, 18 Dec 2014 15:49:16 +0000 (16:49 +0100)
committerMartin Willi <martin@revosec.ch>
Fri, 20 Feb 2015 12:34:53 +0000 (13:34 +0100)
commite1e854bd0c3c1bf2f2eb6c8935daadfb565c61fc
tree495db3bcbbdc757c604a4294283ae480bc2c7850
parentfa4f66cba3da0e1ddcff1f764e7147abe6dab22c
charon-tkm: Store remote SPI in SAD

Store the remote instead of the local SPI in the SAD when adding a new
entry in the kernel plugin's add_sa() function.

Since only one ESA context must be destroyed for an inbound/outbound
CHILD SA pair, it does not matter which SPI is used to retrieve it in
the del_sa function.
src/charon-tkm/src/tkm/tkm_kernel_ipsec.c