aboutsummaryrefslogtreecommitdiffstats
path: root/src/libipsec
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-06-13 13:53:16 +0200
committerTobias Brunner <tobias@strongswan.org>2013-06-13 13:54:05 +0200
commit52d7c530e9dd2137f8227114a2bcde89ed998bce (patch)
treee7e48de701b6b4be10461231277214f007fa5c6b /src/libipsec
parent246e2bed1d005386938fb6243ec97cf2cff7bd48 (diff)
downloadstrongswan-52d7c530e9dd2137f8227114a2bcde89ed998bce.tar.bz2
strongswan-52d7c530e9dd2137f8227114a2bcde89ed998bce.tar.xz
libipsec: Add initiator flag to definition of ipsec_sa_mgr_t.add_sa()
Diffstat (limited to 'src/libipsec')
-rw-r--r--src/libipsec/ipsec_sa_mgr.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libipsec/ipsec_sa_mgr.h b/src/libipsec/ipsec_sa_mgr.h
index 3ff092038..e9ce5ee8f 100644
--- a/src/libipsec/ipsec_sa_mgr.h
+++ b/src/libipsec/ipsec_sa_mgr.h
@@ -70,6 +70,7 @@ struct ipsec_sa_mgr_t {
* @param mode mode for this SA (only tunnel mode is supported)
* @param ipcomp IPcomp transform (not supported, use IPCOMP_NONE)
* @param cpi CPI for IPcomp (ignored)
+ * @param initiator TRUE if initiator of the exchange creating this SA
* @param encap enable UDP encapsulation (must be TRUE)
* @param esn Extended Sequence Numbers (currently not supported)
* @param inbound TRUE if this is an inbound SA, FALSE otherwise
@@ -82,8 +83,9 @@ struct ipsec_sa_mgr_t {
mark_t mark, u_int32_t tfc, lifetime_cfg_t *lifetime,
u_int16_t enc_alg, chunk_t enc_key, u_int16_t int_alg,
chunk_t int_key, ipsec_mode_t mode, u_int16_t ipcomp,
- u_int16_t cpi, bool encap, bool esn, bool inbound,
- traffic_selector_t *src_ts, traffic_selector_t *dst_ts);
+ u_int16_t cpi, bool initiator, bool encap, bool esn,
+ bool inbound, traffic_selector_t *src_ts,
+ traffic_selector_t *dst_ts);
/**
* Update the hosts on an installed SA.