TlsDHVerifier.cs 734 B

12345678910111213141516171819
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters;
  5. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls
  6. {
  7. /// <summary>An interface for verifying that Diffie-Hellman parameters are acceptable.</summary>
  8. public interface TlsDHVerifier
  9. {
  10. /// <summary>Verify that the given <c>DHParameters</c> are acceptable.</summary>
  11. /// <param name="dhParameters">The <c>DHParameters</c> to verify.</param>
  12. /// <returns>true if (and only if) the specified parameters are acceptable.</returns>
  13. bool Accept(DHParameters dhParameters);
  14. }
  15. }
  16. #pragma warning restore
  17. #endif