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

126 lines
7.8 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
{
// Token: 0x02001845 RID: 6213
[Token(Token = "0x2001845")]
[StructLayout(3)]
public class TargetInformation : Asn1Encodable
{
// Token: 0x0600A776 RID: 42870 RVA: 0x0026F5A0 File Offset: 0x0026D7A0
[Token(Token = "0x600A776")]
[Address(RVA = "0x2B13600", Offset = "0x2B12000", VA = "0x182B13600")]
public static TargetInformation GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600A776)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TargetInformation BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TargetInformation::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_29:
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2F)), 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: 0x0600A777 RID: 42871 RVA: 0x0026F5F8 File Offset: 0x0026D7F8
[Token(Token = "0x600A777")]
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
private TargetInformation(Asn1Sequence targets)
{
this.targets = targets;
}
// Token: 0x0600A778 RID: 42872 RVA: 0x0026F614 File Offset: 0x0026D814
[Token(Token = "0x600A778")]
[Address(RVA = "0x2B137F0", Offset = "0x2B121F0", VA = "0x182B137F0", Slot = "6")]
public virtual Targets[] GetTargetsObjects()
{
Asn1Sequence asn1Sequence = this.targets;
Asn1Encodable asn1Encodable;
Targets[] array = new Targets[asn1Encodable];
int num = 0;
Asn1Sequence asn1Sequence2 = this.targets;
Asn1Encodable asn1Encodable2;
if (num < asn1Encodable2)
{
Asn1SequenceParser parser = this.targets.Parser;
Targets targets;
if (targets != 0)
{
}
num++;
array[0] = targets;
Asn1Sequence asn1Sequence3 = this.targets;
}
return array;
}
// Token: 0x0600A779 RID: 42873 RVA: 0x0026F66C File Offset: 0x0026D86C
[Token(Token = "0x600A779")]
[Address(RVA = "0x2B13920", Offset = "0x2B12320", VA = "0x182B13920")]
public TargetInformation(Targets targets)
{
DerSequence derSequence = new DerSequence(targets);
this.targets = derSequence;
}
// Token: 0x0600A77A RID: 42874 RVA: 0x0026F690 File Offset: 0x0026D890
[Token(Token = "0x600A77A")]
[Address(RVA = "0x2B13990", Offset = "0x2B12390", VA = "0x182B13990")]
public TargetInformation(Target[] targets)
{
DerSequence derSequence = new DerSequence(targets);
Targets targets2;
targets2.targets = derSequence;
base..ctor();
DerSequence derSequence2 = new DerSequence(targets2);
this.targets = derSequence2;
}
// Token: 0x0600A77B RID: 42875 RVA: 0x0026F6C0 File Offset: 0x0026D8C0
[Token(Token = "0x600A77B")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600A77B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TargetInformation::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(TargetInformation::targets, ldloc:TargetInformation(this)))
}
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: 0x04006CD2 RID: 27858
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006CD2")]
private readonly Asn1Sequence targets;
}
}