<div>My authorize hook listener gets called for the client and the gateway. How can I tell for which end is the current invocation? <br/>
<br/>
<font color="#888888"><font color="#888888">Sent from my android device.</font></font><br/><br/>-----Original Message-----<br/>From: Vyronas Tsingaras <vtsingaras@it.auth.gr><br/>To: Martin Willi <martin@strongswan.org><br/>Cc: dev@lists.strongswan.org<br/>Sent: Fri, 27 Jun 2014 14:55<br/>Subject: Re: [strongSwan-dev] Implement new plugin<br/><br/></div>Am I correct that in order to test my plugin on a package-install of
<br/>
strongswan on Ubuntu 14.04 I just have to add the conf file to
<br/>
/etc/strongswan.d/charon/ and add the resulting .so to
<br/>
/usr/lib/ipsec/plugins/ ?? Thank you for your time.
<br/>
<br/>
Regards,
<br/>
Vyronas Tsingaras
<br/>
<a href="mailto:vtsingaras@it.auth.gr">vtsingaras@it.auth.gr</a>
<br/>
<br/>
On 27/06/2014 12:49 μμ, Martin Willi wrote:
<br/>
> Hi Vyronas,
<br/>
>
<br/>
>> How does one add a new plugin to the build system?
<br/>
> You'll have to add a --enable option and the associated Makefile to
<br/>
> <a href="http://configure.ac">configure.ac</a>. Search the file for an existing plugin (lookip for
<br/>
> example), and insert corresponding statements for your plugin.
<br/>
>
<br/>
> For a libcharon plugin, you'll have to extend the <a href="http://Makefile.am">Makefile.am</a> in this
<br/>
> directory for your plugin. Again, refer to an existing plugin for a
<br/>
> template.
<br/>
>
<br/>
>> Is there an existing plugin that provides authorization by an external
<br/>
>> script/executable after user authentication like OpenVPN?
<br/>
> No, the updown plugin invokes a script for established tunnels, but
<br/>
> can't reject authorization based on the script return value.
<br/>
>
<br/>
> Instead, you may register a listener for the authorize hook [1], which
<br/>
> then can call a script and pass appropriate information for a decision.
<br/>
>
<br/>
> Regards
<br/>
> Martin
<br/>
>
<br/>
> [1]<a href="http://git.strongswan.org/?p=strongswan.git;a=blob;f=src/libcharon/bus/listeners/listener.h;h=abcc765e;hb=HEAD#l163">http://git.strongswan.org/?p=strongswan.git;a=blob;f=src/libcharon/bus/listeners/listener.h;h=abcc765e;hb=HEAD#l163</a>
<br/>
>
<br/>
<br/>
<br/>
<br/>