Pārlūkot izejas kodu

Fix revocation checks in certificate validator.

release/3.x.x
Christian Kratky pirms 6 gadiem
vecāks
revīzija
03bef4c15d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      Source/MQTTnet/Implementations/MqttTcpChannel.cs

+ 1
- 1
Source/MQTTnet/Implementations/MqttTcpChannel.cs Parādīt failu

@@ -116,7 +116,7 @@ namespace MQTTnet.Implementations
return true;
}

if (chain.ChainStatus.Any(c => c.Status == X509ChainStatusFlags.RevocationStatusUnknown || c.Status == X509ChainStatusFlags.Revoked || c.Status == X509ChainStatusFlags.RevocationStatusUnknown))
if (chain.ChainStatus.Any(c => c.Status == X509ChainStatusFlags.RevocationStatusUnknown || c.Status == X509ChainStatusFlags.Revoked || c.Status == X509ChainStatusFlags.OfflineRevocation))
{
if (!_options.TlsOptions.IgnoreCertificateRevocationErrors)
{


Notiek ielāde…
Atcelt
Saglabāt