OCSPResponseStatus.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System;
  3. using Org.BouncyCastle.Asn1;
  4. namespace Org.BouncyCastle.Asn1.Ocsp
  5. {
  6. public class OcspResponseStatus
  7. : DerEnumerated
  8. {
  9. public const int Successful = 0;
  10. public const int MalformedRequest = 1;
  11. public const int InternalError = 2;
  12. public const int TryLater = 3;
  13. public const int SignatureRequired = 5;
  14. public const int Unauthorized = 6;
  15. /**
  16. * The OcspResponseStatus enumeration.
  17. * <pre>
  18. * OcspResponseStatus ::= Enumerated {
  19. * successful (0), --Response has valid confirmations
  20. * malformedRequest (1), --Illegal confirmation request
  21. * internalError (2), --Internal error in issuer
  22. * tryLater (3), --Try again later
  23. * --(4) is not used
  24. * sigRequired (5), --Must sign the request
  25. * unauthorized (6) --Request unauthorized
  26. * }
  27. * </pre>
  28. */
  29. public OcspResponseStatus(int value)
  30. : base(value)
  31. {
  32. }
  33. public OcspResponseStatus(DerEnumerated value)
  34. : base(value.Value.IntValue)
  35. {
  36. }
  37. }
  38. }
  39. #endif