0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00

ParseClientConfig: add helper constructor

This constructor takes only the profile content as argument.
It is quite useful when a user wants to create
a ParseClientConfig object starting from a plain .ovpn file,
without providing any other pre-parsed information.

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
This commit is contained in:
Antonio Quartulli 2017-10-17 18:01:11 +08:00 committed by Antonio Quartulli
parent 71a59e41a2
commit 1eab4cbfb7

View File

@ -299,6 +299,11 @@ namespace openvpn {
}
}
static ParseClientConfig parse(const std::string& content)
{
return parse(content, nullptr);
}
static ParseClientConfig parse(const std::string& content, OptionList::KeyValueList* content_list)
{
OptionList options;