diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-09-13 15:50:52 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-09-13 15:50:52 +0200 |
commit | 7d786057b4e62bb46fbc33fea6063abc9a13bc66 (patch) | |
tree | 3d35a16fc979238bf7aa6f8b31d08f221eb251dd /src/libstrongswan/library.c | |
parent | bc6ec4de7314885d2725bccc186a527bda37c2bc (diff) | |
parent | 08ad639f327d2e5445d7274b7705093704151f35 (diff) | |
download | strongswan-7d786057b4e62bb46fbc33fea6063abc9a13bc66.tar.bz2 strongswan-7d786057b4e62bb46fbc33fea6063abc9a13bc66.tar.xz |
Merge branch 'custom-crypto'
This provides plugins with an interface to register keywords for
proposals (e.g. when parsing the esp and ike options from ipsec.conf)
and the possibility to register identifiers for kernel algorithms.
It is based on patches contributed by Nanoteq Pty Ltd.
Diffstat (limited to 'src/libstrongswan/library.c')
-rw-r--r-- | src/libstrongswan/library.c | 2 |
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(); |