TlsSrpConfigVerifier.cs 718 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 SRP config needs to conform to.</summary>
  8. public interface TlsSrpConfigVerifier
  9. {
  10. /// <summary>Check whether the given SRP configuration is acceptable for use.</summary>
  11. /// <param name="srpConfig">the <see cref="TlsSrpConfig"/> to check.</param>
  12. /// <returns>true if (and only if) the specified configuration is acceptable.</returns>
  13. bool Accept(TlsSrpConfig srpConfig);
  14. }
  15. }
  16. #pragma warning restore
  17. #endif