aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2006-10-28 15:31:42 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2006-10-28 15:31:42 +0000
commit5db5740075c8090a92e082065b6a6a72a96d0485 (patch)
treec13beb32086be2fa143f536e2edf75aabcc2e163 /src
parentaf6d6bb954c7e3e8690c1d13ee73693aab68418b (diff)
downloadstrongswan-5db5740075c8090a92e082065b6a6a72a96d0485.tar.bz2
strongswan-5db5740075c8090a92e082065b6a6a72a96d0485.tar.xz
added methods get_my_ca() and get_other_ca()
Diffstat (limited to 'src')
-rw-r--r--src/charon/config/policies/policy.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/charon/config/policies/policy.c b/src/charon/config/policies/policy.c
index 4ef0969d1..70beb1c17 100644
--- a/src/charon/config/policies/policy.c
+++ b/src/charon/config/policies/policy.c
@@ -164,6 +164,22 @@ static identification_t *get_other_id(private_policy_t *this)
}
/**
+ * Implementation of policy_t.get_my_ca
+ */
+static identification_t *get_my_ca(private_policy_t *this)
+{
+ return this->my_ca;
+}
+
+/**
+ * Implementation of policy_t.get_other_ca
+ */
+static identification_t *get_other_ca(private_policy_t *this)
+{
+ return this->other_ca;
+}
+
+/**
* Implementation of connection_t.auth_method_t.
*/
static auth_method_t get_auth_method(private_policy_t *this)
@@ -474,6 +490,8 @@ policy_t *policy_create(char *name, identification_t *my_id, identification_t *o
this->public.get_name = (char* (*) (policy_t*))get_name;
this->public.get_my_id = (identification_t* (*) (policy_t*))get_my_id;
this->public.get_other_id = (identification_t* (*) (policy_t*))get_other_id;
+ this->public.get_my_ca = (identification_t* (*) (policy_t*))get_my_ca;
+ this->public.get_other_ca = (identification_t* (*) (policy_t*))get_other_ca;
this->public.get_auth_method = (auth_method_t (*) (policy_t*)) get_auth_method;
this->public.get_my_traffic_selectors = (linked_list_t* (*) (policy_t*,host_t*))get_my_traffic_selectors;
this->public.get_other_traffic_selectors = (linked_list_t* (*) (policy_t*,host_t*))get_other_traffic_selectors;