From 1fd5383e61d82d3dbb5b9d3087290f0741b147e6 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 19 Apr 2007 08:02:19 +0000 Subject: added PDF support for CHILD_SAs support for INVALID_KE_PAYLOAD negotiation for rekeying --- src/charon/config/child_cfg.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/charon/config/child_cfg.h') diff --git a/src/charon/config/child_cfg.h b/src/charon/config/child_cfg.h index 6b2299089..e1a6553b4 100644 --- a/src/charon/config/child_cfg.h +++ b/src/charon/config/child_cfg.h @@ -96,9 +96,10 @@ struct child_cfg_t { * Resulting list and all of its proposals must be freed after use. * * @param this calling object + * @param strip_dh TRUE strip out diffie hellman groups * @return list of proposals */ - linked_list_t* (*get_proposals)(child_cfg_t *this); + linked_list_t* (*get_proposals)(child_cfg_t *this, bool strip_dh); /** * @brief Select a proposal from a supplied list. @@ -107,9 +108,11 @@ struct child_cfg_t { * * @param this calling object * @param proposals list from from wich proposals are selected + * @param strip_dh TRUE strip out diffie hellman groups * @return selected proposal, or NULL if nothing matches */ - proposal_t* (*select_proposal)(child_cfg_t*this, linked_list_t *proposals); + proposal_t* (*select_proposal)(child_cfg_t*this, linked_list_t *proposals, + bool strip_dh); /** * @brief Add a traffic selector to the config. @@ -188,6 +191,14 @@ struct child_cfg_t { */ mode_t (*get_mode) (child_cfg_t *this); + /** + * @brief Get the DH group to use for CHILD_SA setup. + * + * @param this calling object + * @return dh group to use + */ + diffie_hellman_group_t (*get_dh_group)(child_cfg_t *this); + /** * @brief Get a new reference. * -- cgit v1.2.3