Req.cs 883 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using System.Collections;
  5. using System.IO;
  6. using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
  7. using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp;
  8. using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
  9. using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
  10. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
  11. {
  12. public class Req
  13. : X509ExtensionBase
  14. {
  15. private Request req;
  16. public Req(
  17. Request req)
  18. {
  19. this.req = req;
  20. }
  21. public CertificateID GetCertID()
  22. {
  23. return new CertificateID(req.ReqCert);
  24. }
  25. public X509Extensions SingleRequestExtensions
  26. {
  27. get { return req.SingleRequestExtensions; }
  28. }
  29. protected override X509Extensions GetX509Extensions()
  30. {
  31. return SingleRequestExtensions;
  32. }
  33. }
  34. }
  35. #pragma warning restore
  36. #endif