System.Net.ServicePointManager.ChainValidationHelper.GetErrorsFromChain C# (CSharp) Метод

GetErrorsFromChain() статический приватный Метод

static private GetErrorsFromChain ( Mono.Security.X509.X509Chain chain ) : SslPolicyErrors
chain Mono.Security.X509.X509Chain
Результат 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;
			}