]> git.ipfire.org Git - thirdparty/strongswan.git/commit
plugin-loader: Add optional filter for plugin features
authorThomas Egerer <thomas.egerer@secunet.com>
Thu, 28 Jan 2021 17:49:08 +0000 (17:49 +0000)
committerTobias Brunner <tobias@strongswan.org>
Thu, 4 Feb 2021 15:39:27 +0000 (16:39 +0100)
commit2566eb2194e3d9581a6b6103e70aa34992eab4f0
tree141efe191164c14fe8dc84d9f25937b2dc883b04
parente6a6fc33b6ff13f62f167013fb50149fdf239ef6
plugin-loader: Add optional filter for plugin features

In some cases, the algorithms that have been compiled into a plugin have
to be disabled at runtime. Based on the array returned by the get_features()
function the optionally provided function can strip algorithms or even
callbacks or registrations from a plugin, giving us a handy and powerful way
for runtime feature configuration aside from the plugin list.

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
src/libstrongswan/plugins/plugin_loader.c