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:
parent
71a59e41a2
commit
1eab4cbfb7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user