TlsDHGroupVerifier.cs 695 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.Tls.Crypto;
  5. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Tls
  6. {
  7. /// <summary>Interface for verifying explicit Diffie-Hellman group parameters.</summary>
  8. public interface TlsDHGroupVerifier
  9. {
  10. /// <summary>Check whether the given DH group is acceptable for use.</summary>
  11. /// <param name="dhGroup">the <see cref="DHGroup"/> to check.</param>
  12. /// <returns>true if (and only if) the specified group is acceptable.</returns>
  13. bool Accept(DHGroup dhGroup);
  14. }
  15. }
  16. #pragma warning restore
  17. #endif