TlsProtocolHandler.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using System.Collections;
  5. using System.IO;
  6. using System.Text;
  7. using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
  8. using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
  9. using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Agreement;
  10. using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Agreement.Srp;
  11. using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Digests;
  12. using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Encodings;
  13. using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines;
  14. using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Generators;
  15. using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO;
  16. using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters;
  17. using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Prng;
  18. using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
  19. using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
  20. using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
  21. using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date;
  22. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls
  23. {
  24. [Obsolete("Use 'TlsClientProtocol' instead")]
  25. public class TlsProtocolHandler
  26. : TlsClientProtocol
  27. {
  28. public TlsProtocolHandler(Stream stream, SecureRandom secureRandom)
  29. : base(stream, stream, secureRandom)
  30. {
  31. }
  32. /// <remarks>Both streams can be the same object</remarks>
  33. public TlsProtocolHandler(Stream input, Stream output, SecureRandom secureRandom)
  34. : base(input, output, secureRandom)
  35. {
  36. }
  37. }
  38. }
  39. #pragma warning restore
  40. #endif