[strongSwan] Parsing strongswan.conf in starter
Noel Kuntze
noel at familie-kuntze.de
Mon May 12 15:05:59 CEST 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello Martin,
Okay, so lib->settings->get_* returns a string then.
To implement the thing I want, I need to introduce a new parameter in strongswan.conf.
That means, that I also need to touch the settings_t class and implement a method to grab
the value from the parameter, right?
Regards,
Noel
GPG Key id: 0x63EC6658
Fingerprint: 23CA BB60 2146 05E7 7278 6592 3839 298F 63EC 6658
Am 12.05.2014 14:45, schrieb Martin Willi:
> Hi Noel,
>
>> I want to use a configurable option in strongswan.conf, for which I
>> need to parse the file. I already searched for the correct library to
>> do that, but could not find it.
>
> Any tool (including starter) building upon libstrongswan automatically
> can make use of strongswan.conf options. The file is parsed during
> library_init(), and options can be queried using the
> lib->settings->get_* functions provided by the settings_t class.
>
> Regards
> Martin
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJTcMc3AAoJEDg5KY9j7GZYKGsP/0wuQvmo/Qmswmc92aeNnzUu
Femzz0RbqfNZiIs10JhNxVDRTNLS2XMkG2oOs6E5WW4pwBi2f9yjbuitK7Zwl4EY
GJ4ot90UqHaW30ARXxhggFY3VBoKnX1eM8r1pWtvfJkzbP3krI1C4g7y/OISSgmV
GUvJeVcDc83VSE6W7g25oOWto07wcQl3YR2gDlBoxnzzHCv53naXVtnu/g3jis+4
sBQS4A7e0Gpghfjqmh04w+OfvMbQrH/1neGVzqKcsegYIu+CwN0LsxY5FPtetAFK
pf0SRLjAzHi+o3GncBDBOmo0HP1hqoHAWYwSh0IRIy9Q31YBIYMsZo+b/t8q5OmR
7rLrOYkc6a9OqPwD5PixiQLC6IQca3Xare9wGGOwneRLJpFeKSZxxlBz6eEoS/xW
EsNv7I7IezWGkMVRTEkfoHBU8x3y77ES+dixFhdcwSxsOes0SU3W2inQecclpyG5
vtojmT07i6i7zhv6koM8/CGirpXUBkEKFBekqTmkenJ6inQBBS9WDBZueKTSMmrd
Y0d6tTTAvv9JHBCZPFdIM8+Z5OeX6hdPqy8RWImDPFvnck73lhVZ9xRGbe/67sWH
Jbphn9LtaYHjEvV/dSnzvDqBZgZ/KzJRLIBU1uH9vrLzuZ1iziK/v2nzvqORja5A
qhL41Lt30yqzzUiovZ/L
=tIdk
-----END PGP SIGNATURE-----
More information about the Users
mailing list