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

193 lines
10 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: 0x02001825 RID: 6181
[Token(Token = "0x2001825")]
[StructLayout(3)]
public class DistributionPointName : Asn1Encodable, IAsn1Choice
{
// Token: 0x0600A685 RID: 42629 RVA: 0x0026B684 File Offset: 0x00269884
[Token(Token = "0x600A685")]
[Address(RVA = "0x2B02C60", Offset = "0x2B01660", VA = "0x182B02C60")]
public static DistributionPointName GetInstance(Asn1TaggedObject obj, bool explicitly)
{
return DistributionPointName.GetInstance(Asn1TaggedObject.GetInstance(obj, true));
}
// Token: 0x0600A686 RID: 42630 RVA: 0x0026B6A0 File Offset: 0x002698A0
[Token(Token = "0x600A686")]
[Address(RVA = "0x2B02A40", Offset = "0x2B01440", VA = "0x182B02A40")]
public static DistributionPointName GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600A686)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DistributionPointName BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DistributionPointName::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_4D:
stloc:string(var_10_53, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_11_6B, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_10_53)), 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: 0x0600A687 RID: 42631 RVA: 0x0026B71C File Offset: 0x0026991C
[Token(Token = "0x600A687")]
[Address(RVA = "0x2B02EB0", Offset = "0x2B018B0", VA = "0x182B02EB0")]
public DistributionPointName(int type, Asn1Encodable name)
{
this.type = type;
this.name = name;
}
// Token: 0x0600A688 RID: 42632 RVA: 0x0026B740 File Offset: 0x00269940
[Token(Token = "0x600A688")]
[Address(RVA = "0x2B02EF0", Offset = "0x2B018F0", VA = "0x182B02EF0")]
public DistributionPointName(GeneralNames name)
{
this.type = (int)((ulong)0L);
this.name = name;
}
// Token: 0x17001A06 RID: 6662
// (get) Token: 0x0600A689 RID: 42633 RVA: 0x0026B764 File Offset: 0x00269964
[Token(Token = "0x17001A06")]
public int PointType
{
[Token(Token = "0x600A689")]
[Address(RVA = "0x3EE8D0", Offset = "0x3ED2D0", VA = "0x1803EE8D0")]
get
{
return this.type;
}
}
// Token: 0x17001A07 RID: 6663
// (get) Token: 0x0600A68A RID: 42634 RVA: 0x0026B778 File Offset: 0x00269978
[Token(Token = "0x17001A07")]
public Asn1Encodable Name
{
[Token(Token = "0x600A68A")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
get
{
return this.name;
}
}
// Token: 0x0600A68B RID: 42635 RVA: 0x0026B78C File Offset: 0x0026998C
[Token(Token = "0x600A68B")]
[Address(RVA = "0x2B02E40", Offset = "0x2B01840", VA = "0x182B02E40")]
public DistributionPointName(Asn1TaggedObject obj)
{
int tagNo = obj.tagNo;
this.type = tagNo;
int num = 0;
if (tagNo != 0)
{
Asn1Set instance = Asn1Set.GetInstance(obj, num != 0);
this.name = instance;
return;
}
GeneralNames instance2 = GeneralNames.GetInstance(Asn1Sequence.GetInstance(obj, num != 0));
this.name = instance2;
}
// Token: 0x0600A68C RID: 42636 RVA: 0x0026B7E0 File Offset: 0x002699E0
[Token(Token = "0x600A68C")]
[Address(RVA = "0x2B02C80", Offset = "0x2B01680", VA = "0x182B02C80", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600A68C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DistributionPointName::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:int32(var_0_06, ldfld:int32(DistributionPointName::type, ldloc:DistributionPointName(this)))
stloc:Asn1Encodable(var_1_0D, ldfld:Asn1Encodable(DistributionPointName::name, ldloc:DistributionPointName(this)))
stloc:DerTaggedObject(var_2_17, newobj:DerTaggedObject(DerTaggedObject::.ctor, ldloc:int32[exp:bool](var_4), ldloc:int32(var_0_06), ldloc:Asn1Encodable(var_1_0D)))
stloc:int32(var_4, ldc.i4:int32(0))
}
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: 0x0600A68D RID: 42637 RVA: 0x0026B808 File Offset: 0x00269A08
[Token(Token = "0x600A68D")]
[Address(RVA = "0x2B02CF0", Offset = "0x2B016F0", VA = "0x182B02CF0", Slot = "3")]
public override string ToString()
{
string newLine = Platform.NewLine;
StringBuilder stringBuilder = new StringBuilder();
StringBuilder stringBuilder2 = stringBuilder.Append("DistributionPointName: [");
StringBuilder stringBuilder3 = stringBuilder.Append(newLine);
Asn1Encodable asn1Encodable = this.name;
if (this.type != 0)
{
int hashCode = asn1Encodable.GetHashCode();
}
int hashCode2 = asn1Encodable.GetHashCode();
StringBuilder stringBuilder4 = stringBuilder.Append("]");
StringBuilder stringBuilder5 = stringBuilder.Append(newLine);
throw new NullReferenceException();
}
// Token: 0x0600A68E RID: 42638 RVA: 0x0026B874 File Offset: 0x00269A74
[Token(Token = "0x600A68E")]
[Address(RVA = "0x2B02F20", Offset = "0x2B01920", VA = "0x182B02F20")]
private void appendObject(StringBuilder buf, string sep, string name, string val)
{
StringBuilder stringBuilder = buf.Append(" ");
StringBuilder stringBuilder2 = buf.Append(name);
StringBuilder stringBuilder3 = buf.Append(":");
StringBuilder stringBuilder4 = buf.Append(sep);
StringBuilder stringBuilder5 = buf.Append(" ");
StringBuilder stringBuilder6 = buf.Append(" ");
StringBuilder stringBuilder7 = buf.Append(sep);
}
// Token: 0x04006C4E RID: 27726
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006C4E")]
internal readonly Asn1Encodable name;
// Token: 0x04006C4F RID: 27727
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006C4F")]
internal readonly int type;
// Token: 0x04006C50 RID: 27728
[Token(Token = "0x4006C50")]
public const int FullName = 0;
// Token: 0x04006C51 RID: 27729
[Token(Token = "0x4006C51")]
public const int NameRelativeToCrlIssuer = 1;
}
}