mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
Merge PR #928: OpenVPN X.509 certificate authentication will be used only when no username / password is specified
This commit is contained in:
commit
9fbfa61b34
@ -871,10 +871,14 @@ void OvsBeginIPCAsyncConnectionIfEmpty(OPENVPN_SERVER *s, OPENVPN_SESSION *se, O
|
|||||||
p.BridgeMode = true;
|
p.BridgeMode = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (IsEmptyStr(c->ClientKey.Username) || IsEmptyStr(c->ClientKey.Password))
|
||||||
|
{
|
||||||
|
// OpenVPN X.509 certificate authentication will be used only when no username / password is specified
|
||||||
if (c->ClientCert.X != NULL)
|
if (c->ClientCert.X != NULL)
|
||||||
{
|
{
|
||||||
p.ClientCertificate = c->ClientCert.X;
|
p.ClientCertificate = c->ClientCert.X;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Calculate the MSS
|
// Calculate the MSS
|
||||||
p.Mss = OvsCalcTcpMss(s, se, c);
|
p.Mss = OvsCalcTcpMss(s, se, c);
|
||||||
|
Loading…
Reference in New Issue
Block a user