DERSequenceParser.cs 486 B

123456789101112131415161718192021222324252627
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. namespace Org.BouncyCastle.Asn1
  3. {
  4. public class DerSequenceParser
  5. : Asn1SequenceParser
  6. {
  7. private readonly Asn1StreamParser _parser;
  8. internal DerSequenceParser(
  9. Asn1StreamParser parser)
  10. {
  11. this._parser = parser;
  12. }
  13. public IAsn1Convertible ReadObject()
  14. {
  15. return _parser.ReadObject();
  16. }
  17. public Asn1Object ToAsn1Object()
  18. {
  19. return new DerSequence(_parser.ReadVector());
  20. }
  21. }
  22. }
  23. #endif