diff options
Diffstat (limited to 'Source/charon/config/init_config.h')
-rw-r--r-- | Source/charon/config/init_config.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/Source/charon/config/init_config.h b/Source/charon/config/init_config.h index 7ff46cc54..5e189f9bd 100644 --- a/Source/charon/config/init_config.h +++ b/Source/charon/config/init_config.h @@ -87,7 +87,7 @@ struct init_config_t { /** * Get my host information as host_t object. * - * @warning Object is getting cloned and has to get destroyed by caller. + * @warning Object is NOT getting cloned. * * @param this calling object * @return host information as host_t object @@ -97,7 +97,7 @@ struct init_config_t { /** * Get other host information as host_t object. * - * @warning Object is getting cloned and has to get destroyed by caller. + * @warning Object is NOT getting cloned. * * @param this calling object * @return host information as host_t object @@ -105,6 +105,26 @@ struct init_config_t { host_t * (*get_other_host) (init_config_t *this); /** + * Get my host information as host_t object. + * + * @warning Object is not getting cloned and has to get destroyed by caller. + * + * @param this calling object + * @return host information as host_t object + */ + host_t * (*get_my_host_clone) (init_config_t *this); + + /** + * Get other host information as host_t object. + * + * @warning Object is not getting cloned and has to get destroyed by caller. + * + * @param this calling object + * @return host information as host_t object + */ + host_t * (*get_other_host_clone) (init_config_t *this); + + /** * Get the diffie hellman group to use as initiator with given priority. * * |