158 lines
9.0 KiB
C#
158 lines
9.0 KiB
C#
using System;
|
|
using System.Text;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
|
{
|
|
// Token: 0x02001ED7 RID: 7895
|
|
[Token(Token = "0x2001ED7")]
|
|
public class CrlDistPoint : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C5E3 RID: 50659 RVA: 0x002CB2AC File Offset: 0x002C94AC
|
|
[Token(Token = "0x600C5E3")]
|
|
[Address(RVA = "0x2D89630", Offset = "0x2D88630", VA = "0x182D89630")]
|
|
public static CrlDistPoint GetInstance(Asn1TaggedObject obj, bool explicitly)
|
|
{
|
|
return CrlDistPoint.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
|
}
|
|
|
|
// Token: 0x0600C5E4 RID: 50660 RVA: 0x002CB2C8 File Offset: 0x002C94C8
|
|
[Token(Token = "0x600C5E4")]
|
|
[Address(RVA = "0x2D89430", Offset = "0x2D88430", VA = "0x182D89430")]
|
|
public static CrlDistPoint GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C5E4)
|
|
|
|
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: 0x0600C5E5 RID: 50661 RVA: 0x002CB324 File Offset: 0x002C9524
|
|
[Token(Token = "0x600C5E5")]
|
|
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
|
private CrlDistPoint(Asn1Sequence seq)
|
|
{
|
|
this.seq = seq;
|
|
}
|
|
|
|
// Token: 0x0600C5E6 RID: 50662 RVA: 0x002CB340 File Offset: 0x002C9540
|
|
[Token(Token = "0x600C5E6")]
|
|
[Address(RVA = "0x2D898A0", Offset = "0x2D888A0", VA = "0x182D898A0")]
|
|
public CrlDistPoint(DistributionPoint[] points)
|
|
{
|
|
DerSequence derSequence = new DerSequence(points);
|
|
this.seq = derSequence;
|
|
}
|
|
|
|
// Token: 0x0600C5E7 RID: 50663 RVA: 0x002CB364 File Offset: 0x002C9564
|
|
[Token(Token = "0x600C5E7")]
|
|
[Address(RVA = "0x2D89300", Offset = "0x2D88300", VA = "0x182D89300")]
|
|
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: 0x0600C5E8 RID: 50664 RVA: 0x002CB3BC File Offset: 0x002C95BC
|
|
[Token(Token = "0x600C5E8")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C5E8)
|
|
|
|
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: 0x0600C5E9 RID: 50665 RVA: 0x002CB3D0 File Offset: 0x002C95D0
|
|
[Token(Token = "0x600C5E9")]
|
|
[Address(RVA = "0x2D89650", Offset = "0x2D88650", VA = "0x182D89650", 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: 0x04007C29 RID: 31785
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007C29")]
|
|
internal readonly Asn1Sequence seq;
|
|
}
|
|
}
|