AlwaysValidVerifyer.cs 636 B

1234567891011121314151617181920212223242526
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System;
  3. using Org.BouncyCastle.Asn1.X509;
  4. namespace Org.BouncyCastle.Crypto.Tls
  5. {
  6. /// <remarks>
  7. /// A certificate verifyer, that will always return true.
  8. /// <pre>
  9. /// DO NOT USE THIS FILE UNLESS YOU KNOW EXACTLY WHAT YOU ARE DOING.
  10. /// </pre>
  11. /// </remarks>
  12. //[Obsolete("Perform certificate verification in TlsAuthentication implementation")]
  13. public class AlwaysValidVerifyer : ICertificateVerifyer
  14. {
  15. /// <summary>Return true.</summary>
  16. public bool IsValid(Uri targetUri, X509CertificateStructure[] certs)
  17. {
  18. return true;
  19. }
  20. }
  21. }
  22. #endif