mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 20:13:05 +02:00
Implemented "client-cert-not-required" directive as an alias for
"setenv CLIENT_CERT 0".
This commit is contained in:
parent
9262e131b7
commit
26657012b6
@ -44,7 +44,7 @@ namespace openvpn {
|
||||
// limits
|
||||
const size_t max_server_list_size = 64;
|
||||
|
||||
// server-locked profiles not supported
|
||||
// process setenv directives
|
||||
{
|
||||
const OptionList::IndexList* se = options.get_index_ptr("setenv");
|
||||
if (se)
|
||||
@ -53,6 +53,8 @@ namespace openvpn {
|
||||
{
|
||||
const Option& o = options[*i];
|
||||
const std::string arg1 = o.get_optional(1, 256);
|
||||
|
||||
// server-locked profiles not supported
|
||||
if (arg1 == "GENERIC_CONFIG")
|
||||
{
|
||||
error_ = true;
|
||||
@ -89,6 +91,11 @@ namespace openvpn {
|
||||
}
|
||||
}
|
||||
|
||||
// Alternative to "setenv CLIENT_CERT 0". Note that as of OpenVPN 2.3, this option
|
||||
// is only supported server-side, so this extends its meaning into the client realm.
|
||||
if (options.exists("client-cert-not-required"))
|
||||
clientCertEnabled_ = false;
|
||||
|
||||
// userlocked username
|
||||
{
|
||||
const Option* o = options.get_ptr("USERNAME");
|
||||
|
Loading…
Reference in New Issue
Block a user