scripts
This commit is contained in:
@@ -0,0 +1,155 @@
|
||||
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: 0x02001828 RID: 6184
|
||||
[Token(Token = "0x2001828")]
|
||||
[StructLayout(3)]
|
||||
public class GeneralNames : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600A6AA RID: 42666 RVA: 0x0026C2A0 File Offset: 0x0026A4A0
|
||||
[Token(Token = "0x600A6AA")]
|
||||
[Address(RVA = "0x2B06390", Offset = "0x2B04D90", VA = "0x182B06390")]
|
||||
public static GeneralNames GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A6AA)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralNames BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralNames::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_53:
|
||||
stloc:string(var_9_59, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_71, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_9_59)), 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: 0x0600A6AB RID: 42667 RVA: 0x0026C320 File Offset: 0x0026A520
|
||||
[Token(Token = "0x600A6AB")]
|
||||
[Address(RVA = "0x2B06370", Offset = "0x2B04D70", VA = "0x182B06370")]
|
||||
public static GeneralNames GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return GeneralNames.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600A6AC RID: 42668 RVA: 0x0026C33C File Offset: 0x0026A53C
|
||||
[Token(Token = "0x600A6AC")]
|
||||
[Address(RVA = "0x2B06940", Offset = "0x2B05340", VA = "0x182B06940")]
|
||||
public GeneralNames(GeneralName name)
|
||||
{
|
||||
GeneralName[] array = new GeneralName[1];
|
||||
if (name != 0)
|
||||
{
|
||||
}
|
||||
array[0] = name;
|
||||
this.names = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600A6AD RID: 42669 RVA: 0x0026C370 File Offset: 0x0026A570
|
||||
[Token(Token = "0x600A6AD")]
|
||||
[Address(RVA = "0x2B068B0", Offset = "0x2B052B0", VA = "0x182B068B0")]
|
||||
public GeneralNames(GeneralName[] names)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600A6AE RID: 42670 RVA: 0x0026C38C File Offset: 0x0026A58C
|
||||
[Token(Token = "0x600A6AE")]
|
||||
[Address(RVA = "0x2B069F0", Offset = "0x2B053F0", VA = "0x182B069F0")]
|
||||
private GeneralNames(Asn1Sequence seq)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
GeneralName[] array = new GeneralName[asn1Encodable];
|
||||
this.names = array;
|
||||
int num = 0;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (num != asn1Encodable2)
|
||||
{
|
||||
GeneralName[] array2 = this.names;
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
GeneralName generalName;
|
||||
if (generalName != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array2[0] = generalName;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A6AF RID: 42671 RVA: 0x0026C3DC File Offset: 0x0026A5DC
|
||||
[Token(Token = "0x600A6AF")]
|
||||
[Address(RVA = "0x2B06680", Offset = "0x2B05080", VA = "0x182B06680")]
|
||||
public GeneralName[] GetNames()
|
||||
{
|
||||
GeneralName[] array = this.names;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A6B0 RID: 42672 RVA: 0x0026C3F8 File Offset: 0x0026A5F8
|
||||
[Token(Token = "0x600A6B0")]
|
||||
[Address(RVA = "0x2B06700", Offset = "0x2B05100", VA = "0x182B06700", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A6B0)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralNames::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:DerSequence(var_0_0B, newobj:DerSequence(DerSequence::.ctor, ldfld:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralName[][exp:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable[]](GeneralNames::names, ldloc:GeneralNames(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: 0x0600A6B1 RID: 42673 RVA: 0x0026C410 File Offset: 0x0026A610
|
||||
[Token(Token = "0x600A6B1")]
|
||||
[Address(RVA = "0x2B06760", Offset = "0x2B05160", VA = "0x182B06760", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
string newLine = Platform.NewLine;
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append("GeneralNames:");
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append(newLine);
|
||||
GeneralName[] array = this.names;
|
||||
int num = 0;
|
||||
int length = array.Length;
|
||||
if (num < length)
|
||||
{
|
||||
GeneralName generalName = array[num];
|
||||
StringBuilder stringBuilder4 = stringBuilder.Append(" ");
|
||||
StringBuilder stringBuilder5 = stringBuilder.Append(generalName);
|
||||
StringBuilder stringBuilder6 = stringBuilder.Append(newLine);
|
||||
num++;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006C5F RID: 27743
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006C5F")]
|
||||
private readonly GeneralName[] names;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user