191 lines
10 KiB
C#
191 lines
10 KiB
C#
using System;
|
|
using System.Text;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
|
{
|
|
// Token: 0x02001E02 RID: 7682
|
|
[Token(Token = "0x2001E02")]
|
|
public class DistributionPointName : Asn1Encodable, IAsn1Choice
|
|
{
|
|
// Token: 0x0600C25F RID: 49759 RVA: 0x002C3C68 File Offset: 0x002C1E68
|
|
[Token(Token = "0x600C25F")]
|
|
[Address(RVA = "0x2726F50", Offset = "0x2725D50", VA = "0x182726F50")]
|
|
public static DistributionPointName GetInstance(Asn1TaggedObject obj, bool explicitly)
|
|
{
|
|
return DistributionPointName.GetInstance(Asn1TaggedObject.GetInstance(obj, true));
|
|
}
|
|
|
|
// Token: 0x0600C260 RID: 49760 RVA: 0x002C3C84 File Offset: 0x002C1E84
|
|
[Token(Token = "0x600C260")]
|
|
[Address(RVA = "0x2726D30", Offset = "0x2725B30", VA = "0x182726D30")]
|
|
public static DistributionPointName GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C260)
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600C261 RID: 49761 RVA: 0x002C3D00 File Offset: 0x002C1F00
|
|
[Token(Token = "0x600C261")]
|
|
[Address(RVA = "0x27271A0", Offset = "0x2725FA0", VA = "0x1827271A0")]
|
|
public DistributionPointName(int type, Asn1Encodable name)
|
|
{
|
|
this.type = type;
|
|
this.name = name;
|
|
}
|
|
|
|
// Token: 0x0600C262 RID: 49762 RVA: 0x002C3D24 File Offset: 0x002C1F24
|
|
[Token(Token = "0x600C262")]
|
|
[Address(RVA = "0x27271E0", Offset = "0x2725FE0", VA = "0x1827271E0")]
|
|
public DistributionPointName(GeneralNames name)
|
|
{
|
|
this.type = (int)((ulong)0L);
|
|
this.name = name;
|
|
}
|
|
|
|
// Token: 0x17001E07 RID: 7687
|
|
// (get) Token: 0x0600C263 RID: 49763 RVA: 0x002C3D48 File Offset: 0x002C1F48
|
|
[Token(Token = "0x17001E07")]
|
|
public int PointType
|
|
{
|
|
[Token(Token = "0x600C263")]
|
|
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720")]
|
|
get
|
|
{
|
|
return this.type;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001E08 RID: 7688
|
|
// (get) Token: 0x0600C264 RID: 49764 RVA: 0x002C3D5C File Offset: 0x002C1F5C
|
|
[Token(Token = "0x17001E08")]
|
|
public Asn1Encodable Name
|
|
{
|
|
[Token(Token = "0x600C264")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get
|
|
{
|
|
return this.name;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C265 RID: 49765 RVA: 0x002C3D70 File Offset: 0x002C1F70
|
|
[Token(Token = "0x600C265")]
|
|
[Address(RVA = "0x2727130", Offset = "0x2725F30", VA = "0x182727130")]
|
|
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: 0x0600C266 RID: 49766 RVA: 0x002C3DC4 File Offset: 0x002C1FC4
|
|
[Token(Token = "0x600C266")]
|
|
[Address(RVA = "0x2726F70", Offset = "0x2725D70", VA = "0x182726F70", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C266)
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600C267 RID: 49767 RVA: 0x002C3DEC File Offset: 0x002C1FEC
|
|
[Token(Token = "0x600C267")]
|
|
[Address(RVA = "0x2726FE0", Offset = "0x2725DE0", VA = "0x182726FE0", 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: 0x0600C268 RID: 49768 RVA: 0x002C3E58 File Offset: 0x002C2058
|
|
[Token(Token = "0x600C268")]
|
|
[Address(RVA = "0x2727210", Offset = "0x2726010", VA = "0x182727210")]
|
|
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: 0x04007A91 RID: 31377
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007A91")]
|
|
internal readonly Asn1Encodable name;
|
|
|
|
// Token: 0x04007A92 RID: 31378
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007A92")]
|
|
internal readonly int type;
|
|
|
|
// Token: 0x04007A93 RID: 31379
|
|
[Token(Token = "0x4007A93")]
|
|
public const int FullName = 0;
|
|
|
|
// Token: 0x04007A94 RID: 31380
|
|
[Token(Token = "0x4007A94")]
|
|
public const int NameRelativeToCrlIssuer = 1;
|
|
}
|
|
}
|