ASN1Generator.cs 594 B

12345678910111213141516171819202122232425262728293031
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System.Collections;
  4. using System.IO;
  5. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
  6. {
  7. public abstract class Asn1Generator
  8. {
  9. private Stream _out;
  10. protected Asn1Generator(
  11. Stream outStream)
  12. {
  13. _out = outStream;
  14. }
  15. protected Stream Out
  16. {
  17. get { return _out; }
  18. }
  19. public abstract void AddObject(Asn1Encodable obj);
  20. public abstract Stream GetRawOutputStream();
  21. public abstract void Close();
  22. }
  23. }
  24. #pragma warning restore
  25. #endif