aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/plugin_loader.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-09-21 11:17:56 +0200
committerMartin Willi <martin@revosec.ch>2011-10-14 10:05:46 +0200
commit3cd28acce0405af40d02d9e935b2c2610e0940c2 (patch)
tree8dc7ea418ee3fad0d35c0123477238bb3102e715 /src/libstrongswan/plugins/plugin_loader.c
parent02572b84f99bb5e29a05dcb1d0a314b00df71b91 (diff)
downloadstrongswan-3cd28acce0405af40d02d9e935b2c2610e0940c2.tar.bz2
strongswan-3cd28acce0405af40d02d9e935b2c2610e0940c2.tar.xz
Add aead plugin features
Diffstat (limited to 'src/libstrongswan/plugins/plugin_loader.c')
-rw-r--r--src/libstrongswan/plugins/plugin_loader.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/plugin_loader.c b/src/libstrongswan/plugins/plugin_loader.c
index 831a10613..ecd1d718f 100644
--- a/src/libstrongswan/plugins/plugin_loader.c
+++ b/src/libstrongswan/plugins/plugin_loader.c
@@ -297,6 +297,7 @@ static bool load_feature(private_plugin_loader_t *this, plugin_entry_t *entry,
switch (feature->type)
{
case FEATURE_CRYPTER:
+ case FEATURE_AEAD:
case FEATURE_SIGNER:
case FEATURE_HASHER:
case FEATURE_PRF:
@@ -340,6 +341,10 @@ static bool load_feature(private_plugin_loader_t *this, plugin_entry_t *entry,
lib->crypto->add_crypter(lib->crypto, feature->crypter.alg,
name, reg->reg.f);
break;
+ case FEATURE_AEAD:
+ lib->crypto->add_aead(lib->crypto, feature->aead.alg,
+ name, reg->reg.f);
+ break;
case FEATURE_SIGNER:
lib->crypto->add_signer(lib->crypto, feature->signer,
name, reg->reg.f);