[strongSwan-dev] Querying Strongswan to get plugins configuration information

Ke Shang hikeshang at hotmail.com
Wed Jan 11 17:10:44 CET 2017


Thanks Andreas!


Is it possible to call some function to get the configuration information of my custom plugins?


For example:

myPlugin.conf

myPlugin {

    load = yes
    type = abc
}

I want to be able to do something like getConf("type"), and it returns abc.

Regards
Ke
________________________________
From: Andreas Steffen <andreas.steffen at strongswan.org>
Sent: January 11, 2017 2:30 AM
To: Ke Shang; dev at lists.strongswan.org
Subject: Re: [strongSwan-dev] Querying Strongswan to get plugins configuration information

Hi Ke,

     ipsec statusall
or
     swanctl --stats

lists all loaded plugins.

Regards

Andreas

On 11.01.2017 05:44, Ke Shang wrote:
> Hi all,
>
>
> I was just wondering if it is possible to query Strongswan at runtime to
> get plugins configuration information.
>
>
> Thanks,
> Ke
>
======================================================================
Andreas Steffen                         andreas.steffen at strongswan.org
strongSwan - the Open Source VPN Solution!          www.strongswan.org<http://www.strongswan.org>
Institute for Internet Technologies and Applications
University of Applied Sciences Rapperswil
CH-8640 Rapperswil (Switzerland)
===========================================================[ITA-HSR]==

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/dev/attachments/20170111/21f50b6f/attachment.html>


More information about the Dev mailing list