ICertificateVerifyer.cs 660 B

12345678910111213141516171819202122
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System;
  3. using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
  4. namespace Org.BouncyCastle.Crypto.Tls2
  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. public interface ICertificateVerifyer
  11. {
  12. /// <param name="certs">The certs, which are part of the chain.</param>
  13. /// <param name="targetUri"></param>
  14. /// <returns>True, if the chain is accepted, false otherwise</returns>
  15. bool IsValid(Uri targetUri, X509CertificateStructure[] certs);
  16. }
  17. }
  18. #endif