aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-05-17 17:55:02 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-05-17 17:55:02 +0000
commit7d26a0ee03abf84a00f8e3101917bb0d56351f56 (patch)
tree77d940d26572ed011b2bbe5c5599fc6031b34947 /src
parent13de65882b4db696bb5693dd35ca82cf4c4d4588 (diff)
downloadstrongswan-7d26a0ee03abf84a00f8e3101917bb0d56351f56.tar.bz2
strongswan-7d26a0ee03abf84a00f8e3101917bb0d56351f56.tar.xz
added set_other_ca() and get_other_ca()
Diffstat (limited to 'src')
-rw-r--r--src/charon/sa/ike_sa.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/charon/sa/ike_sa.h b/src/charon/sa/ike_sa.h
index 0f015286e..76942b208 100644
--- a/src/charon/sa/ike_sa.h
+++ b/src/charon/sa/ike_sa.h
@@ -38,6 +38,7 @@ typedef struct ike_sa_t ike_sa_t;
#include <crypto/prfs/prf.h>
#include <crypto/crypters/crypter.h>
#include <crypto/signers/signer.h>
+#include <crypto/ca.h>
#include <config/peer_cfg.h>
#include <config/ike_cfg.h>
@@ -255,7 +256,7 @@ struct ike_sa_t {
void (*set_my_id) (ike_sa_t *this, identification_t *me);
/**
- * @brief Get the other peers identification.
+ * @brief Get the other peer's identification.
*
* @param this calling object
* @return identification
@@ -263,7 +264,7 @@ struct ike_sa_t {
identification_t* (*get_other_id) (ike_sa_t *this);
/**
- * @brief Set the other peers identification.
+ * @brief Set the other peer's identification.
*
* @param this calling object
* @param other identification
@@ -271,6 +272,22 @@ struct ike_sa_t {
void (*set_other_id) (ike_sa_t *this, identification_t *other);
/**
+ * @brief Get the other peer's certification authority
+ *
+ * @param this calling object
+ * @return ca_info_t record of other ca
+ */
+ ca_info_t* (*get_other_ca) (ike_sa_t *this);
+
+ /**
+ * @brief Set the other peer's certification authority
+ *
+ * @param this calling object
+ * @param other_ca ca_info_t record of other ca
+ */
+ void (*set_other_ca) (ike_sa_t *this, ca_info_t *other_ca);
+
+ /**
* @brief Get the config used to setup this IKE_SA.
*
* @param this calling object