ASN1Generator.cs 523 B

123456789101112131415161718192021222324252627282930
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System.Collections;
  3. using System.IO;
  4. namespace 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 Stream GetRawOutputStream();
  20. public abstract void Close();
  21. }
  22. }
  23. #endif