aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdrian-Ken Rueegsegger <ken@codelabs.ch>2012-12-17 17:21:47 +0100
committerTobias Brunner <tobias@strongswan.org>2013-03-19 15:23:49 +0100
commit722d68803ee65c41585cbdd075817d6b6a280ae6 (patch)
tree4e6b2f289e5f298446b3453bca2c2abb6228dc21 /src
parent1c1400f0079f7ded06ad66156d6d0398358fe1c2 (diff)
downloadstrongswan-722d68803ee65c41585cbdd075817d6b6a280ae6.tar.bz2
strongswan-722d68803ee65c41585cbdd075817d6b6a280ae6.tar.xz
Set sp_id to reqid when creating ESA
The reqid corresponds to the sp_id (security policy id) on the TKM side.
Diffstat (limited to 'src')
-rw-r--r--src/charon-tkm/src/tkm/tkm_kernel_ipsec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/charon-tkm/src/tkm/tkm_kernel_ipsec.c b/src/charon-tkm/src/tkm/tkm_kernel_ipsec.c
index 623942b62..d60b8e5ae 100644
--- a/src/charon-tkm/src/tkm/tkm_kernel_ipsec.c
+++ b/src/charon-tkm/src/tkm/tkm_kernel_ipsec.c
@@ -134,7 +134,7 @@ METHOD(kernel_ipsec_t, add_sa, status_t,
*/
if (nonce_loc_id == 0 && esa.dh_id == 0)
{
- if (ike_esa_create_first(esa_id, esa.isa_id, 1, 1, ntohl(spi_loc),
+ if (ike_esa_create_first(esa_id, esa.isa_id, reqid, 1, ntohl(spi_loc),
ntohl(spi_rem)) != TKM_OK)
{
DBG1(DBG_KNL, "child SA (%llu, first) creation failed", esa_id);
@@ -146,7 +146,7 @@ METHOD(kernel_ipsec_t, add_sa, status_t,
{
nonce_type nc_rem;
chunk_to_sequence(nonce_rem, &nc_rem, sizeof(nonce_type));
- if (ike_esa_create_no_pfs(esa_id, esa.isa_id, 1, 1, nonce_loc_id,
+ if (ike_esa_create_no_pfs(esa_id, esa.isa_id, reqid, 1, nonce_loc_id,
nc_rem, initiator, ntohl(spi_loc),
ntohl(spi_rem)) != TKM_OK)
{
@@ -160,7 +160,7 @@ METHOD(kernel_ipsec_t, add_sa, status_t,
{
nonce_type nc_rem;
chunk_to_sequence(nonce_rem, &nc_rem, sizeof(nonce_type));
- if (ike_esa_create(esa_id, esa.isa_id, 1, 1, esa.dh_id, nonce_loc_id,
+ if (ike_esa_create(esa_id, esa.isa_id, reqid, 1, esa.dh_id, nonce_loc_id,
nc_rem, initiator, ntohl(spi_loc),
ntohl(spi_rem)) != TKM_OK)
{