138 references to X509ChainStatusFlags
netstandard (1)
netstandard.cs (1)
1965
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.
X509ChainStatusFlags
))]
PresentationUI (46)
MS\Internal\Documents\DigitalSignatureProvider.cs (46)
601
X509ChainStatusFlags
x509ChainStatusFlags;
609
X509ChainStatusFlags
x509RemainingFlags = (x509ChainStatusFlags ^ _x509NonCorruptedFlags) &
617
if (x509RemainingFlags ==
X509ChainStatusFlags
.NoError)
620
if ((x509ChainStatusFlags & _x509CannotBeVerifiedFlags) !=
X509ChainStatusFlags
.NoError)
625
else if ((x509ChainStatusFlags & _x509IssuerNotTrustedFlags) !=
X509ChainStatusFlags
.NoError)
630
else if ((x509ChainStatusFlags & _x509RevokedFlags) !=
X509ChainStatusFlags
.NoError)
635
else if ((x509ChainStatusFlags & _x509ExpiredFlags) !=
X509ChainStatusFlags
.NoError)
803
private const
X509ChainStatusFlags
_x509NonCorruptedFlags =
804
X509ChainStatusFlags
.HasExcludedNameConstraint |
805
X509ChainStatusFlags
.HasNotDefinedNameConstraint |
806
X509ChainStatusFlags
.HasNotPermittedNameConstraint |
807
X509ChainStatusFlags
.HasNotSupportedNameConstraint |
808
X509ChainStatusFlags
.InvalidBasicConstraints |
809
X509ChainStatusFlags
.InvalidExtension |
810
X509ChainStatusFlags
.InvalidNameConstraints |
811
X509ChainStatusFlags
.InvalidPolicyConstraints |
812
X509ChainStatusFlags
.NoIssuanceChainPolicy |
813
X509ChainStatusFlags
.PartialChain |
814
X509ChainStatusFlags
.UntrustedRoot |
815
X509ChainStatusFlags
.Revoked |
816
X509ChainStatusFlags
.NotTimeValid |
817
X509ChainStatusFlags
.NoError |
818
X509ChainStatusFlags
.CtlNotSignatureValid |
819
X509ChainStatusFlags
.CtlNotTimeValid |
820
X509ChainStatusFlags
.CtlNotValidForUsage |
821
X509ChainStatusFlags
.NotTimeNested |
822
X509ChainStatusFlags
.NotValidForUsage |
823
X509ChainStatusFlags
.OfflineRevocation |
824
X509ChainStatusFlags
.RevocationStatusUnknown;
827
private const
X509ChainStatusFlags
_x509CannotBeVerifiedFlags =
828
X509ChainStatusFlags
.HasExcludedNameConstraint |
829
X509ChainStatusFlags
.HasNotDefinedNameConstraint |
830
X509ChainStatusFlags
.HasNotPermittedNameConstraint |
831
X509ChainStatusFlags
.HasNotSupportedNameConstraint |
832
X509ChainStatusFlags
.InvalidBasicConstraints |
833
X509ChainStatusFlags
.InvalidExtension |
834
X509ChainStatusFlags
.InvalidNameConstraints |
835
X509ChainStatusFlags
.InvalidPolicyConstraints |
836
X509ChainStatusFlags
.NoIssuanceChainPolicy;
839
private const
X509ChainStatusFlags
_x509IssuerNotTrustedFlags =
840
X509ChainStatusFlags
.PartialChain |
841
X509ChainStatusFlags
.UntrustedRoot;
844
private const
X509ChainStatusFlags
_x509RevokedFlags =
845
X509ChainStatusFlags
.Revoked;
848
private const
X509ChainStatusFlags
_x509ExpiredFlags =
849
X509ChainStatusFlags
.NotTimeValid;
ReachFramework (2)
packaging\XpsDigitalSignature.cs (2)
287
X509ChainStatusFlags
299
X509ChainStatusFlags
System (1)
src\libraries\shims\System\ref\System.cs (1)
874
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.
X509ChainStatusFlags
))]
System.Net.Security (23)
System\Net\Security\SslStream.IO.cs (4)
551
private bool CompleteHandshake(ref ProtocolToken alertToken, out SslPolicyErrors sslPolicyErrors, out
X509ChainStatusFlags
chainStatus)
560
chainStatus =
X509ChainStatusFlags
.NoError;
592
if (!CompleteHandshake(ref alertToken, out SslPolicyErrors sslPolicyErrors, out
X509ChainStatusFlags
chainStatus))
599
else if (sslPolicyErrors == SslPolicyErrors.RemoteCertificateChainErrors && chainStatus !=
X509ChainStatusFlags
.NoError)
System\Net\Security\SslStream.Protocol.cs (18)
1038
internal bool VerifyRemoteCertificate(RemoteCertificateValidationCallback? remoteCertValidationCallback, SslCertificateTrust? trust, ref ProtocolToken alertToken, out SslPolicyErrors sslPolicyErrors, out
X509ChainStatusFlags
chainStatus)
1041
chainStatus =
X509ChainStatusFlags
.NoError;
1229
if (chainStatus.Status ==
X509ChainStatusFlags
.NoError)
1235
(
X509ChainStatusFlags
.UntrustedRoot |
X509ChainStatusFlags
.PartialChain |
1236
X509ChainStatusFlags
.Cyclic)) != 0)
1242
(
X509ChainStatusFlags
.Revoked |
X509ChainStatusFlags
.OfflineRevocation)) != 0)
1248
(
X509ChainStatusFlags
.CtlNotTimeValid |
X509ChainStatusFlags
.NotTimeNested |
1249
X509ChainStatusFlags
.NotTimeValid)) != 0)
1254
if ((chainStatus.Status &
X509ChainStatusFlags
.CtlNotValidForUsage) != 0)
1260
(
X509ChainStatusFlags
.CtlNotSignatureValid |
X509ChainStatusFlags
.InvalidExtension |
1261
X509ChainStatusFlags
.NotSignatureValid |
X509ChainStatusFlags
.InvalidPolicyConstraints) |
1262
X509ChainStatusFlags
.NoIssuanceChainPolicy |
X509ChainStatusFlags
.NotValidForUsage) != 0)
System\Net\Security\SslStreamCertificateContext.cs (1)
113
if (status.Status.HasFlag(
X509ChainStatusFlags
.PartialChain))
System.Security.Cryptography (58)
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (37)
22
private delegate
X509ChainStatusFlags
MapVersionSpecificCode(Interop.Crypto.X509VerifyStatusCode code);
873
if (!ContainsStatus(overallStatus,
X509ChainStatusFlags
.PartialChain) &&
874
!ContainsStatus(overallStatus,
X509ChainStatusFlags
.UntrustedRoot))
876
RemoveStatus(statusBuilder,
X509ChainStatusFlags
.NotSignatureValid);
877
RemoveStatus(overallStatus,
X509ChainStatusFlags
.NotSignatureValid);
939
Status =
X509ChainStatusFlags
.NotValidForUsage,
978
if (element.Status ==
X509ChainStatusFlags
.RevocationStatusUnknown)
982
Status =
X509ChainStatusFlags
.OfflineRevocation,
1001
X509ChainStatusFlags
statusFlag = MapVerifyErrorToChainStatus(errorCode);
1027
if (statusFlag ==
X509ChainStatusFlags
.NotSignatureValid)
1035
X509ChainStatusFlags
statusCode = status.Status;
1048
private static bool ContainsStatus(List<X509ChainStatus> list,
X509ChainStatusFlags
statusCode)
1061
private static void RemoveStatus(List<X509ChainStatus> list,
X509ChainStatusFlags
statusCode)
1073
private static
X509ChainStatusFlags
MapVerifyErrorToChainStatus(Interop.Crypto.X509VerifyStatusCode code)
1078
return
X509ChainStatusFlags
.NoError;
1084
return
X509ChainStatusFlags
.NotTimeValid;
1087
return
X509ChainStatusFlags
.Revoked;
1091
return
X509ChainStatusFlags
.NotSignatureValid;
1096
return
X509ChainStatusFlags
.UntrustedRoot;
1110
return
X509ChainStatusFlags
.RevocationStatusUnknown;
1113
return
X509ChainStatusFlags
.InvalidExtension;
1118
return
X509ChainStatusFlags
.PartialChain;
1121
return
X509ChainStatusFlags
.NotValidForUsage;
1127
return
X509ChainStatusFlags
.InvalidBasicConstraints;
1131
return
X509ChainStatusFlags
.InvalidPolicyConstraints;
1134
return
X509ChainStatusFlags
.ExplicitDistrust;
1137
return
X509ChainStatusFlags
.HasNotSupportedCriticalExtension;
1140
return
X509ChainStatusFlags
.HasNotPermittedNameConstraint;
1143
return
X509ChainStatusFlags
.HasExcludedNameConstraint;
1146
return
X509ChainStatusFlags
.HasNotSupportedNameConstraint;
1149
return
X509ChainStatusFlags
.InvalidNameConstraints;
1162
private static
X509ChainStatusFlags
MapOpenSsl30Code(Interop.Crypto.X509VerifyStatusCode code)
1167
return
X509ChainStatusFlags
.InvalidBasicConstraints;
1174
private static
X509ChainStatusFlags
MapOpenSsl102Code(Interop.Crypto.X509VerifyStatusCode code)
1179
return
X509ChainStatusFlags
.InvalidBasicConstraints;
1186
private static
X509ChainStatusFlags
MapOpenSsl111Code(Interop.Crypto.X509VerifyStatusCode code)
1191
return
X509ChainStatusFlags
.InvalidBasicConstraints;
System\Security\Cryptography\X509Certificates\UnixChainVerifier.cs (20)
33
if (status.Status ==
X509ChainStatusFlags
.NoError)
48
if (status.Status ==
X509ChainStatusFlags
.RevocationStatusUnknown)
63
else if (status.Status ==
X509ChainStatusFlags
.OfflineRevocation)
91
private static X509VerificationFlags? GetSuppressionFlag(
X509ChainStatusFlags
status)
95
case
X509ChainStatusFlags
.UntrustedRoot:
96
case
X509ChainStatusFlags
.PartialChain:
99
case
X509ChainStatusFlags
.NotValidForUsage:
100
case
X509ChainStatusFlags
.CtlNotValidForUsage:
103
case
X509ChainStatusFlags
.NotTimeValid:
106
case
X509ChainStatusFlags
.CtlNotTimeValid:
109
case
X509ChainStatusFlags
.InvalidNameConstraints:
110
case
X509ChainStatusFlags
.HasNotSupportedNameConstraint:
111
case
X509ChainStatusFlags
.HasNotDefinedNameConstraint:
112
case
X509ChainStatusFlags
.HasNotPermittedNameConstraint:
113
case
X509ChainStatusFlags
.HasExcludedNameConstraint:
116
case
X509ChainStatusFlags
.InvalidPolicyConstraints:
117
case
X509ChainStatusFlags
.NoIssuanceChainPolicy:
120
case
X509ChainStatusFlags
.InvalidBasicConstraints:
123
case
X509ChainStatusFlags
.HasNotSupportedCriticalExtension:
127
case
X509ChainStatusFlags
.NotTimeNested:
System\Security\Cryptography\X509Certificates\X509ChainStatus.cs (1)
12
public
X509ChainStatusFlags
Status { get; set; }
System.Security.Cryptography.Pkcs (1)
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
347
if (status.Status ==
X509ChainStatusFlags
.PartialChain)
System.Security.Cryptography.X509Certificates (1)
System.Security.Cryptography.X509Certificates.cs (1)
28
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.
X509ChainStatusFlags
))]
System.Security.Cryptography.Xml (5)
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (4)
69
((chain.ChainStatus[0].Status &
X509ChainStatusFlags
.PartialChain) ==
X509ChainStatusFlags
.PartialChain))
90
((chain.ChainStatus[0].Status &
X509ChainStatusFlags
.PartialChain) ==
X509ChainStatusFlags
.PartialChain))
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (1)
995
if (status.Status !=
X509ChainStatusFlags
.NoError)