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