AbstractTlsCipherFactory.cs 560 B

12345678910111213141516171819
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using System.IO;
  5. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls
  6. {
  7. public class AbstractTlsCipherFactory
  8. : TlsCipherFactory
  9. {
  10. /// <exception cref="IOException"></exception>
  11. public virtual TlsCipher CreateCipher(TlsContext context, int encryptionAlgorithm, int macAlgorithm)
  12. {
  13. throw new TlsFatalAlert(AlertDescription.internal_error);
  14. }
  15. }
  16. }
  17. #pragma warning restore
  18. #endif