ICertificateVerifyer.cs 721 B

1234567891011121314151617181920212223
  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. /// This should be implemented by any class which can find out, if a given
  8. /// certificate chain is being accepted by an client.
  9. /// </remarks>
  10. //[Obsolete("Perform certificate verification in TlsAuthentication implementation")]
  11. public interface ICertificateVerifyer
  12. {
  13. /// <param name="certs">The certs, which are part of the chain.</param>
  14. /// <param name="targetUri"></param>
  15. /// <returns>True, if the chain is accepted, false otherwise</returns>
  16. bool IsValid(Uri targetUri, X509CertificateStructure[] certs);
  17. }
  18. }
  19. #endif