Req.cs 787 B

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