[strongSwan-dev] Can a plugin use another plugin?.
Martin Willi
martin at strongswan.org
Wed Nov 4 14:25:11 CET 2015
> In other words can my plugin use another plugin which provides
> for the message transport?.
This is possible, but you should avoid relying on hard-coded symbol
names from a different plugin. Instead, you may use the lib->set()/get()
functions to export a symbol using a well-known name, and import it from
another plugin. You can also introduce CUSTOM plugin dependencies to
make sure these dependencies are satisfied.
The eap-aka plugin for example uses this to export the "aka-manager" ,
which is then used by the eap-aka-3gpp2 plugin to provide the backend
through [2].
Regards
Martin
[1]https://git.strongswan.org/?p=strongswan.git;a=blob;f=src/libcharon/plugins/eap_aka/eap_aka_plugin.c
[2]https://git.strongswan.org/?p=strongswan.git;a=blob;f=src/libsimaka/simaka_manager.c#l601
More information about the Dev
mailing list