ASN1Generator.cs 632 B

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