16 lines
544 B
C#
16 lines
544 B
C#
using System;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
|
|
namespace System.Net
|
|
{
|
|
// Token: 0x0200020E RID: 526
|
|
internal class DefaultCertificatePolicy : ICertificatePolicy
|
|
{
|
|
// Token: 0x060011E6 RID: 4582 RVA: 0x00035358 File Offset: 0x00033558
|
|
public bool CheckValidationResult(ServicePoint point, X509Certificate certificate, WebRequest request, int certificateProblem)
|
|
{
|
|
return ServicePointManager.ServerCertificateValidationCallback != null || certificateProblem == -2146762495 || certificateProblem == 0;
|
|
}
|
|
}
|
|
}
|