aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/config/configuration_manager.h
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/config/configuration_manager.h
parent8d68033e5cf37ea91eb160e7b8e1c2d171a356f7 (diff)
downloadstrongswan-aebb38a093d034e44d5ecf9773ff2903ed4a1d1e.tar.bz2
strongswan-aebb38a093d034e44d5ecf9773ff2903ed4a1d1e.tar.xz
- preshared secrets are now retrieved over configuration_manager
Diffstat (limited to 'Source/charon/config/configuration_manager.h')
-rw-r--r--Source/charon/config/configuration_manager.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/Source/charon/config/configuration_manager.h b/Source/charon/config/configuration_manager.h
index bc6c6e81f..fe01615a2 100644
--- a/Source/charon/config/configuration_manager.h
+++ b/Source/charon/config/configuration_manager.h
@@ -114,10 +114,25 @@ struct configuration_manager_t {
* @param[out] timeout the new retransmit timeout in milliseconds
*
* @return
- * - FAILED if the message should not be resent again
+ * - FAILED, if the message should not be resent again
* - SUCCESS
*/
status_t (*get_retransmit_timeout) (configuration_manager_t *this, u_int32_t retransmit_count, u_int32_t *timeout);
+
+ /**
+ * Get the preshared secret of a specific ID.
+ *
+ * The preshared secret gets not cloned.
+ *
+ * @param this calling object
+ * @param identification identification_t object identifiying the ID.
+ * @param[out] preshared_secret the preshared secret will be written there
+ *
+ * @return
+ * - NOT_FOUND if no preshared secrets is configured for specific id
+ * - SUCCESS
+ */
+ status_t (*get_shared_secret) (configuration_manager_t *this, identification_t *identification, chunk_t *preshared_secret);
/**
* Destroys configuration manager