You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.4 KiB
46 lines
1.4 KiB
8 months ago
|
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||
|
#pragma warning disable
|
||
|
using System;
|
||
|
|
||
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||
|
|
||
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp
|
||
|
{
|
||
|
public class OcspResponseStatus
|
||
|
: DerEnumerated
|
||
|
{
|
||
|
public const int Successful = 0;
|
||
|
public const int MalformedRequest = 1;
|
||
|
public const int InternalError = 2;
|
||
|
public const int TryLater = 3;
|
||
|
public const int SignatureRequired = 5;
|
||
|
public const int Unauthorized = 6;
|
||
|
|
||
|
/**
|
||
|
* The OcspResponseStatus enumeration.
|
||
|
* <pre>
|
||
|
* OcspResponseStatus ::= Enumerated {
|
||
|
* successful (0), --Response has valid confirmations
|
||
|
* malformedRequest (1), --Illegal confirmation request
|
||
|
* internalError (2), --Internal error in issuer
|
||
|
* tryLater (3), --Try again later
|
||
|
* --(4) is not used
|
||
|
* sigRequired (5), --Must sign the request
|
||
|
* unauthorized (6) --Request unauthorized
|
||
|
* }
|
||
|
* </pre>
|
||
|
*/
|
||
|
public OcspResponseStatus(int value)
|
||
|
: base(value)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public OcspResponseStatus(DerEnumerated value)
|
||
|
: base(value.IntValueExact)
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#pragma warning restore
|
||
|
#endif
|