diff options
author | Martin Willi <martin@strongswan.org> | 2006-02-09 10:16:20 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-02-09 10:16:20 +0000 |
commit | 93df94acade3b53a8110b5a9b3c60c8e358eb85f (patch) | |
tree | b07293244c237860778b1a03d2fd71791ea5807f /Source/charon/config/child_proposal.h | |
parent | c06dbbabd1498d614d4db88bb4205e2afcd6dab8 (diff) | |
download | strongswan-93df94acade3b53a8110b5a9b3c60c8e358eb85f.tar.bz2 strongswan-93df94acade3b53a8110b5a9b3c60c8e358eb85f.tar.xz |
- works with new proposal code
- still some(!) memleaks
Diffstat (limited to 'Source/charon/config/child_proposal.h')
-rw-r--r-- | Source/charon/config/child_proposal.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/charon/config/child_proposal.h b/Source/charon/config/child_proposal.h index d9e483e3b..69bd7f395 100644 --- a/Source/charon/config/child_proposal.h +++ b/Source/charon/config/child_proposal.h @@ -165,6 +165,20 @@ struct child_proposal_t { * @return iterator over algorithms */ iterator_t *(*create_algorithm_iterator) (child_proposal_t *this, protocol_id_t proto, transform_type_t type); + + /** + * @brief Get the algorithm for a type to use. + * + * If there are multiple algorithms, only the first is returned. + * Result is still owned by child_proposal, do not modify! + * + * @param this calling object + * @param proto desired protocol + * @param type kind of algorithm + * @param[out] algo pointer which receives algorithm and key size + * @return TRUE if algorithm of this kind available + */ + bool (*get_algorithm) (child_proposal_t *this, protocol_id_t proto, transform_type_t type, algorithm_t** algo); /** * @brief Compare two proposal, and select a matching subset. |