System.Net.ServicePointManager.ChainValidationHelper.GetErrorsFromChain C# (CSharp) Method

GetErrorsFromChain() static private method

static private GetErrorsFromChain ( Mono.Security.X509.X509Chain chain ) : SslPolicyErrors
chain Mono.Security.X509.X509Chain
return SslPolicyErrors
			static SslPolicyErrors GetErrorsFromChain (X509Chain chain)
			{
				SslPolicyErrors errors = SslPolicyErrors.None;
				foreach (var status in chain.ChainStatus) {
					if (status.Status == X509ChainStatusFlags.NoError)
						continue;
					errors |= SslPolicyErrors.RemoteCertificateChainErrors;
					break;
				}
				return errors;
			}