BERSetParser.cs 473 B

123456789101112131415161718192021222324252627
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. namespace Org.BouncyCastle.Asn1
  3. {
  4. public class BerSetParser
  5. : Asn1SetParser
  6. {
  7. private readonly Asn1StreamParser _parser;
  8. internal BerSetParser(
  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 BerSet(_parser.ReadVector(), false);
  20. }
  21. }
  22. }
  23. #endif