aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/library.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-09-13 14:22:08 +0200
committerTobias Brunner <tobias@strongswan.org>2012-09-13 15:44:46 +0200
commit4c57c6306235e566f1738cfb7edf582e824b31c6 (patch)
tree747a380203ea558d44804203453e6c4ff1828aea /src/libstrongswan/library.c
parent995875210acb70ba2b12c9368ce892325abb64f2 (diff)
downloadstrongswan-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/libstrongswan/library.c')
-rw-r--r--src/libstrongswan/library.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstrongswan/library.c b/src/libstrongswan/library.c
index ed3f52027..1179b468c 100644
--- a/src/libstrongswan/library.c
+++ b/src/libstrongswan/library.c
@@ -73,6 +73,7 @@ void library_deinit()
this->public.creds->destroy(this->public.creds);
this->public.encoding->destroy(this->public.encoding);
this->public.crypto->destroy(this->public.crypto);
+ this->public.proposal->destroy(this->public.proposal);
this->public.fetcher->destroy(this->public.fetcher);
this->public.db->destroy(this->public.db);
this->public.printf_hook->destroy(this->public.printf_hook);
@@ -182,6 +183,7 @@ bool library_init(char *settings)
this->objects = hashtable_create((hashtable_hash_t)hash,
(hashtable_equals_t)equals, 4);
this->public.settings = settings_create(settings);
+ this->public.proposal = proposal_keywords_create();
this->public.crypto = crypto_factory_create();
this->public.creds = credential_factory_create();
this->public.credmgr = credential_manager_create();