aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/sa/ike_sa.c
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-12-03 16:02:06 +0000
committerJan Hutter <jhutter@hsr.ch>2005-12-03 16:02:06 +0000
commitaebb38a093d034e44d5ecf9773ff2903ed4a1d1e (patch)
tree5b2fb87b38f2862ec3021f0b4fb2078176a14f36 /Source/charon/sa/ike_sa.c
parent8d68033e5cf37ea91eb160e7b8e1c2d171a356f7 (diff)
downloadstrongswan-aebb38a093d034e44d5ecf9773ff2903ed4a1d1e.tar.bz2
strongswan-aebb38a093d034e44d5ecf9773ff2903ed4a1d1e.tar.xz
- preshared secrets are now retrieved over configuration_manager
Diffstat (limited to 'Source/charon/sa/ike_sa.c')
-rw-r--r--Source/charon/sa/ike_sa.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/charon/sa/ike_sa.c b/Source/charon/sa/ike_sa.c
index 1c18e3c74..2c45e5be0 100644
--- a/Source/charon/sa/ike_sa.c
+++ b/Source/charon/sa/ike_sa.c
@@ -567,6 +567,15 @@ static chunk_t get_key_pr (private_ike_sa_t *this)
return this->secrets.pr_key;
}
+
+/**
+ * Implementation of protected_ike_sa_t.get_key_pi.
+ */
+static chunk_t get_key_pi (private_ike_sa_t *this)
+{
+ return this->secrets.pi_key;
+}
+
/**
* Implementation of protected_ike_sa_t.set_prf.
*/
@@ -940,6 +949,7 @@ ike_sa_t * ike_sa_create(ike_sa_id_t *ike_sa_id)
this->protected.compute_secrets = (void (*) (protected_ike_sa_t *,chunk_t ,chunk_t , chunk_t )) compute_secrets;
this->protected.get_prf = (prf_t *(*) (protected_ike_sa_t *)) get_prf;
this->protected.get_key_pr = (chunk_t (*) (protected_ike_sa_t *)) get_key_pr;
+ this->protected.get_key_pi = (chunk_t (*) (protected_ike_sa_t *)) get_key_pi;
this->protected.get_logger = (logger_t *(*) (protected_ike_sa_t *)) get_logger;
this->protected.set_init_config = (void (*) (protected_ike_sa_t *,init_config_t *)) set_init_config;
this->protected.get_init_config = (init_config_t *(*) (protected_ike_sa_t *)) get_init_config;