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

160 lines
9.0 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Text;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
{
// Token: 0x0200181A RID: 6170
[Token(Token = "0x200181A")]
[StructLayout(3)]
public class CrlDistPoint : Asn1Encodable
{
// Token: 0x0600A63B RID: 42555 RVA: 0x0026A464 File Offset: 0x00268664
[Token(Token = "0x600A63B")]
[Address(RVA = "0x2B01140", Offset = "0x2AFFB40", VA = "0x182B01140")]
public static CrlDistPoint GetInstance(Asn1TaggedObject obj, bool explicitly)
{
return CrlDistPoint.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
}
// Token: 0x0600A63C RID: 42556 RVA: 0x0026A480 File Offset: 0x00268680
[Token(Token = "0x600A63C")]
[Address(RVA = "0x2B00F40", Offset = "0x2AFF940", VA = "0x182B00F40")]
public static CrlDistPoint GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600A63C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CrlDistPoint BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CrlDistPoint::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_30:
stloc:string(var_7_36, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_8_4E, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_7_36)), 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: 0x0600A63D RID: 42557 RVA: 0x0026A4DC File Offset: 0x002686DC
[Token(Token = "0x600A63D")]
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
private CrlDistPoint(Asn1Sequence seq)
{
this.seq = seq;
}
// Token: 0x0600A63E RID: 42558 RVA: 0x0026A4F8 File Offset: 0x002686F8
[Token(Token = "0x600A63E")]
[Address(RVA = "0x2B013B0", Offset = "0x2AFFDB0", VA = "0x182B013B0")]
public CrlDistPoint(DistributionPoint[] points)
{
DerSequence derSequence = new DerSequence(points);
this.seq = derSequence;
}
// Token: 0x0600A63F RID: 42559 RVA: 0x0026A51C File Offset: 0x0026871C
[Token(Token = "0x600A63F")]
[Address(RVA = "0x2B00E10", Offset = "0x2AFF810", VA = "0x182B00E10")]
public DistributionPoint[] GetDistributionPoints()
{
Asn1Sequence asn1Sequence = this.seq;
Asn1Encodable asn1Encodable;
DistributionPoint[] array = new DistributionPoint[asn1Encodable];
int num = 0;
Asn1Sequence asn1Sequence2 = this.seq;
Asn1Encodable asn1Encodable2;
if (num != asn1Encodable2)
{
Asn1SequenceParser parser = this.seq.Parser;
DistributionPoint distributionPoint;
if (distributionPoint != 0)
{
}
num++;
array[0] = distributionPoint;
Asn1Sequence asn1Sequence3 = this.seq;
}
return array;
}
// Token: 0x0600A640 RID: 42560 RVA: 0x0026A574 File Offset: 0x00268774
[Token(Token = "0x600A640")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600A640)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CrlDistPoint::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(CrlDistPoint::seq, ldloc:CrlDistPoint(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: 0x0600A641 RID: 42561 RVA: 0x0026A588 File Offset: 0x00268788
[Token(Token = "0x600A641")]
[Address(RVA = "0x2B01160", Offset = "0x2AFFB60", VA = "0x182B01160", Slot = "3")]
public override string ToString()
{
StringBuilder stringBuilder = new StringBuilder();
string newLine = Platform.NewLine;
StringBuilder stringBuilder2 = stringBuilder.Append("CRLDistPoint:");
StringBuilder stringBuilder3 = stringBuilder.Append(newLine);
Asn1Sequence asn1Sequence = this.seq;
Asn1Encodable asn1Encodable;
DistributionPoint[] array = new DistributionPoint[asn1Encodable];
int num = 0;
Asn1Sequence asn1Sequence2 = this.seq;
Asn1Encodable asn1Encodable2;
if (num != asn1Encodable2)
{
Asn1SequenceParser parser = this.seq.Parser;
DistributionPoint distributionPoint;
if (distributionPoint != 0)
{
}
num++;
array[0] = distributionPoint;
Asn1Sequence asn1Sequence3 = this.seq;
}
if (num != array.Length)
{
StringBuilder stringBuilder4 = stringBuilder.Append(" ");
DistributionPoint distributionPoint2 = array[num];
StringBuilder stringBuilder5 = stringBuilder.Append(distributionPoint2);
StringBuilder stringBuilder6 = stringBuilder.Append(newLine);
num++;
}
throw new NullReferenceException();
}
// Token: 0x04006C2D RID: 27693
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006C2D")]
internal readonly Asn1Sequence seq;
}
}