diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-09-13 14:22:08 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-09-13 15:44:46 +0200 |
commit | 4c57c6306235e566f1738cfb7edf582e824b31c6 (patch) | |
tree | 747a380203ea558d44804203453e6c4ff1828aea /src/libcharon/config/proposal.c | |
parent | 995875210acb70ba2b12c9368ce892325abb64f2 (diff) | |
download | strongswan-4c57c6306235e566f1738cfb7edf582e824b31c6.tar.bz2 strongswan-4c57c6306235e566f1738cfb7edf582e824b31c6.tar.xz |
Added possibility to register custom proposal keywords
Keyword lookup and registration are handled via the new lib->proposal object.
Diffstat (limited to 'src/libcharon/config/proposal.c')
-rw-r--r-- | src/libcharon/config/proposal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcharon/config/proposal.c b/src/libcharon/config/proposal.c index bf2bcd031..43b467f46 100644 --- a/src/libcharon/config/proposal.c +++ b/src/libcharon/config/proposal.c @@ -26,7 +26,6 @@ #include <crypto/prfs/prf.h> #include <crypto/crypters/crypter.h> #include <crypto/signers/signer.h> -#include <crypto/proposal/proposal_keywords.h> ENUM(protocol_id_names, PROTO_NONE, PROTO_IPCOMP, "PROTO_NONE", @@ -562,8 +561,9 @@ static void check_proposal(private_proposal_t *this) */ static bool add_string_algo(private_proposal_t *this, const char *alg) { - const proposal_token_t *token = proposal_get_token(alg); + const proposal_token_t *token; + token = lib->proposal->get_token(lib->proposal, alg); if (token == NULL) { DBG1(DBG_CFG, "algorithm '%s' not recognized", alg); |