Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Ocsp/RevokedStatus.cs
T
2026-04-08 23:40:05 +02:00

101 lines
5.5 KiB
C#

using System;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
{
// Token: 0x020013F4 RID: 5108
[Token(Token = "0x20013F4")]
[StructLayout(3)]
public class RevokedStatus : CertificateStatus
{
// Token: 0x06008216 RID: 33302 RVA: 0x001BAA18 File Offset: 0x001B8C18
[Token(Token = "0x6008216")]
[Address(RVA = "0xC24C00", Offset = "0xC23600", VA = "0x180C24C00")]
public RevokedStatus(RevokedInfo info)
{
this.info = info;
}
// Token: 0x06008217 RID: 33303 RVA: 0x001BAA34 File Offset: 0x001B8C34
[Token(Token = "0x6008217")]
[Address(RVA = "0xC24B20", Offset = "0xC23520", VA = "0x180C24B20")]
public RevokedStatus(DateTime revocationDate, int reason)
{
DerGeneralizedTime derGeneralizedTime = new DerGeneralizedTime(revocationDate);
CrlReason crlReason = new CrlReason(reason);
RevokedInfo revokedInfo = new RevokedInfo(derGeneralizedTime, crlReason);
this.info = revokedInfo;
}
// Token: 0x1700151F RID: 5407
// (get) Token: 0x06008218 RID: 33304 RVA: 0x001BAA64 File Offset: 0x001B8C64
[Token(Token = "0x1700151F")]
public DateTime RevocationTime
{
[Token(Token = "0x6008218")]
[Address(RVA = "0xC24D00", Offset = "0xC23700", VA = "0x180C24D00")]
get
{
return this.info.revocationTime.ToDateTime();
}
}
// Token: 0x17001520 RID: 5408
// (get) Token: 0x06008219 RID: 33305 RVA: 0x001BAA88 File Offset: 0x001B8C88
[Token(Token = "0x17001520")]
public bool HasRevocationReason
{
[Token(Token = "0x6008219")]
[Address(RVA = "0xC22450", Offset = "0xC20E50", VA = "0x180C22450")]
get
{
RevokedInfo revokedInfo = this.info;
throw new NullReferenceException();
}
}
// Token: 0x17001521 RID: 5409
// (get) Token: 0x0600821A RID: 33306 RVA: 0x001BAAA4 File Offset: 0x001B8CA4
[Token(Token = "0x17001521")]
public int RevocationReason
{
[Token(Token = "0x600821A")]
[Address(RVA = "0xC24C70", Offset = "0xC23670", VA = "0x180C24C70")]
get
{
/*
An exception occurred when decompiling this method (0600821A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp.RevokedStatus::get_RevocationReason()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_22:
stloc:InvalidOperationException(var_1_2C, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("attempt to get a reason where none is available")))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
}
// Token: 0x04005BDF RID: 23519
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4005BDF")]
internal readonly RevokedInfo info;
}
}