[strongSwan-dev] Can a plugin use another plugin?.

Vamsi Kodavanty kodavanty at gmail.com
Wed Nov 4 18:34:27 CET 2015


Thanks for the advice and pointers, very helpful indeed. I will report back 
with what I ended up doing soon. 

Best Regards
Vamsi.

Martin Willi wrote:

> 
>> 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