Remove TrustAllCertificatePolicy class because wtf? and no ICertificatePolicy in .NET Core.

If consumers want to use this, they'll need to implement this stupidity themselves.
This commit is contained in:
Cinder Biscuits
2017-09-03 16:33:16 -05:00
parent 7772610d26
commit 42c6576e8a

View File

@@ -33,19 +33,6 @@ using System.Security.Cryptography.X509Certificates;
namespace OpenMetaverse.Http
{
public class TrustAllCertificatePolicy : ICertificatePolicy
{
public bool CheckValidationResult(ServicePoint sp, X509Certificate cert, WebRequest req, int problem)
{
return true;
}
public static bool TrustAllCertificateHandler(Object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
{
return true;
}
}
public static class CapsBase
{
public delegate void OpenWriteEventHandler(HttpWebRequest request);