scripts
This commit is contained in:
@@ -0,0 +1,138 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001843 RID: 6211
|
||||
[Token(Token = "0x2001843")]
|
||||
[StructLayout(3)]
|
||||
public class Target : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600A770 RID: 42864 RVA: 0x0026F480 File Offset: 0x0026D680
|
||||
[Token(Token = "0x600A770")]
|
||||
[Address(RVA = "0x2B13A80", Offset = "0x2B12480", VA = "0x182B13A80")]
|
||||
public static Target GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A770)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Target BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Target::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_28)), 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: 0x0600A771 RID: 42865 RVA: 0x0026F4D0 File Offset: 0x0026D6D0
|
||||
[Token(Token = "0x600A771")]
|
||||
[Address(RVA = "0x2B13D10", Offset = "0x2B12710", VA = "0x182B13D10")]
|
||||
private Target(Asn1TaggedObject tagObj)
|
||||
{
|
||||
int tagNo = tagObj.tagNo;
|
||||
if (tagNo == 0)
|
||||
{
|
||||
GeneralName instance = GeneralName.GetInstance(Asn1TaggedObject.GetInstance(tagObj, true));
|
||||
this.targetName = instance;
|
||||
return;
|
||||
}
|
||||
GeneralName instance2 = GeneralName.GetInstance(Asn1TaggedObject.GetInstance(tagObj, tagNo != 0));
|
||||
this.targetGroup = instance2;
|
||||
}
|
||||
|
||||
// Token: 0x0600A772 RID: 42866 RVA: 0x0026F520 File Offset: 0x0026D720
|
||||
[Token(Token = "0x600A772")]
|
||||
[Address(RVA = "0x2B13E10", Offset = "0x2B12810", VA = "0x182B13E10")]
|
||||
public Target(Target.Choice type, GeneralName name)
|
||||
{
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject((int)type, name);
|
||||
}
|
||||
|
||||
// Token: 0x17001A48 RID: 6728
|
||||
// (get) Token: 0x0600A773 RID: 42867 RVA: 0x0026F538 File Offset: 0x0026D738
|
||||
[Token(Token = "0x17001A48")]
|
||||
public virtual GeneralName TargetGroup
|
||||
{
|
||||
[Token(Token = "0x600A773")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.targetGroup;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001A49 RID: 6729
|
||||
// (get) Token: 0x0600A774 RID: 42868 RVA: 0x0026F54C File Offset: 0x0026D74C
|
||||
[Token(Token = "0x17001A49")]
|
||||
public virtual GeneralName TargetName
|
||||
{
|
||||
[Token(Token = "0x600A774")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.targetName;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A775 RID: 42869 RVA: 0x0026F560 File Offset: 0x0026D760
|
||||
[Token(Token = "0x600A775")]
|
||||
[Address(RVA = "0x2B13C70", Offset = "0x2B12670", VA = "0x182B13C70", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A775)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Target::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_23:
|
||||
stloc:DerTaggedObject(var_4_2C, newobj:DerTaggedObject(DerTaggedObject::.ctor, ldc.i4:bool(1), ldloc:int32(var_6), ldloc:GeneralName[exp:Asn1Encodable](var_0_06)))
|
||||
stloc:int32(var_6, 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: 0x04006CCD RID: 27853
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006CCD")]
|
||||
private readonly GeneralName targetName;
|
||||
|
||||
// Token: 0x04006CCE RID: 27854
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006CCE")]
|
||||
private readonly GeneralName targetGroup;
|
||||
|
||||
// Token: 0x02001844 RID: 6212
|
||||
[Token(Token = "0x2001844")]
|
||||
public enum Choice
|
||||
{
|
||||
// Token: 0x04006CD0 RID: 27856
|
||||
[Token(Token = "0x4006CD0")]
|
||||
Name,
|
||||
// Token: 0x04006CD1 RID: 27857
|
||||
[Token(Token = "0x4006CD1")]
|
||||
Group
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user