173 lines
9.0 KiB
C#
173 lines
9.0 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf
|
|
{
|
|
// Token: 0x02001FC7 RID: 8135
|
|
[Token(Token = "0x2001FC7")]
|
|
public class CrlOcspRef : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CBA3 RID: 52131 RVA: 0x002E426C File Offset: 0x002E246C
|
|
[Token(Token = "0x600CBA3")]
|
|
[Address(RVA = "0x2EA7ED0", Offset = "0x2EA6ED0", VA = "0x182EA7ED0")]
|
|
public static CrlOcspRef GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CBA3)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.CrlOcspRef BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.CrlOcspRef::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_26:
|
|
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in 'CrlOcspRef' factory: "), ldloc:string(var_6_2C)), ldstr:string("obj")))
|
|
}
|
|
|
|
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.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: 0x0600CBA4 RID: 52132 RVA: 0x002E42C0 File Offset: 0x002E24C0
|
|
[Token(Token = "0x600CBA4")]
|
|
[Address(RVA = "0x2EA83F0", Offset = "0x2EA73F0", VA = "0x182EA83F0")]
|
|
private CrlOcspRef(Asn1Sequence seq)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CBA4)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.CrlOcspRef::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_88:
|
|
stloc:ArgumentNullException(var_9_92, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("seq")))
|
|
}
|
|
|
|
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.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: 0x0600CBA5 RID: 52133 RVA: 0x002E4360 File Offset: 0x002E2560
|
|
[Token(Token = "0x600CBA5")]
|
|
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
|
|
public CrlOcspRef(CrlListID crlids, OcspListID ocspids, OtherRevRefs otherRev)
|
|
{
|
|
this.crlids = crlids;
|
|
this.ocspids = ocspids;
|
|
this.otherRev = otherRev;
|
|
}
|
|
|
|
// Token: 0x17001FD9 RID: 8153
|
|
// (get) Token: 0x0600CBA6 RID: 52134 RVA: 0x002E4388 File Offset: 0x002E2588
|
|
[Token(Token = "0x17001FD9")]
|
|
public CrlListID CrlIDs
|
|
{
|
|
[Token(Token = "0x600CBA6")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.crlids;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001FDA RID: 8154
|
|
// (get) Token: 0x0600CBA7 RID: 52135 RVA: 0x002E439C File Offset: 0x002E259C
|
|
[Token(Token = "0x17001FDA")]
|
|
public OcspListID OcspIDs
|
|
{
|
|
[Token(Token = "0x600CBA7")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.ocspids;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001FDB RID: 8155
|
|
// (get) Token: 0x0600CBA8 RID: 52136 RVA: 0x002E43B0 File Offset: 0x002E25B0
|
|
[Token(Token = "0x17001FDB")]
|
|
public OtherRevRefs OtherRev
|
|
{
|
|
[Token(Token = "0x600CBA8")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return this.otherRev;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CBA9 RID: 52137 RVA: 0x002E43C4 File Offset: 0x002E25C4
|
|
[Token(Token = "0x600CBA9")]
|
|
[Address(RVA = "0x2EA80D0", Offset = "0x2EA70D0", VA = "0x182EA80D0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
if (this.crlids != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
Asn1Object asn1Object = this.crlids.ToAsn1Object();
|
|
int num;
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, asn1Object);
|
|
num = 0;
|
|
if (derTaggedObject != 0)
|
|
{
|
|
}
|
|
array[0] = derTaggedObject;
|
|
asn1EncodableVector.Add(array);
|
|
}
|
|
if (this.ocspids != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
Asn1Object asn1Object2 = this.ocspids.ToAsn1Object();
|
|
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, asn1Object2);
|
|
if (derTaggedObject2 != 0)
|
|
{
|
|
}
|
|
array2[0] = derTaggedObject2;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
if (this.otherRev != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
|
Asn1Object asn1Object3 = this.otherRev.ToAsn1Object();
|
|
DerTaggedObject derTaggedObject3 = new DerTaggedObject(true, 2, asn1Object3);
|
|
if (derTaggedObject3 != 0)
|
|
{
|
|
}
|
|
array3[0] = derTaggedObject3;
|
|
asn1EncodableVector.Add(array3);
|
|
}
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04008138 RID: 33080
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008138")]
|
|
private readonly CrlListID crlids;
|
|
|
|
// Token: 0x04008139 RID: 33081
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008139")]
|
|
private readonly OcspListID ocspids;
|
|
|
|
// Token: 0x0400813A RID: 33082
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400813A")]
|
|
private readonly OtherRevRefs otherRev;
|
|
}
|
|
}
|