ASN1Generator.cs 657 B

123456789101112131415161718192021222324252627282930313233
  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 void AddObject(Asn1Object obj);
  21. public abstract Stream GetRawOutputStream();
  22. public abstract void Close();
  23. }
  24. }
  25. #pragma warning restore
  26. #endif