a
This commit is contained in:
@@ -0,0 +1,153 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E05 RID: 7685
|
||||
[Token(Token = "0x2001E05")]
|
||||
public class GeneralNames : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C284 RID: 49796 RVA: 0x002C487C File Offset: 0x002C2A7C
|
||||
[Token(Token = "0x600C284")]
|
||||
[Address(RVA = "0x272A4C0", Offset = "0x27292C0", VA = "0x18272A4C0")]
|
||||
public static GeneralNames GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C284)
|
||||
|
||||
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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600C285 RID: 49797 RVA: 0x002C48FC File Offset: 0x002C2AFC
|
||||
[Token(Token = "0x600C285")]
|
||||
[Address(RVA = "0x272A4A0", Offset = "0x27292A0", VA = "0x18272A4A0")]
|
||||
public static GeneralNames GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return GeneralNames.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C286 RID: 49798 RVA: 0x002C4918 File Offset: 0x002C2B18
|
||||
[Token(Token = "0x600C286")]
|
||||
[Address(RVA = "0x272AA70", Offset = "0x2729870", VA = "0x18272AA70")]
|
||||
public GeneralNames(GeneralName name)
|
||||
{
|
||||
GeneralName[] array = new GeneralName[1];
|
||||
if (name != 0)
|
||||
{
|
||||
}
|
||||
array[0] = name;
|
||||
this.names = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C287 RID: 49799 RVA: 0x002C494C File Offset: 0x002C2B4C
|
||||
[Token(Token = "0x600C287")]
|
||||
[Address(RVA = "0x272A9E0", Offset = "0x27297E0", VA = "0x18272A9E0")]
|
||||
public GeneralNames(GeneralName[] names)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C288 RID: 49800 RVA: 0x002C4968 File Offset: 0x002C2B68
|
||||
[Token(Token = "0x600C288")]
|
||||
[Address(RVA = "0x272AB20", Offset = "0x2729920", VA = "0x18272AB20")]
|
||||
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: 0x0600C289 RID: 49801 RVA: 0x002C49B8 File Offset: 0x002C2BB8
|
||||
[Token(Token = "0x600C289")]
|
||||
[Address(RVA = "0x272A7B0", Offset = "0x27295B0", VA = "0x18272A7B0")]
|
||||
public GeneralName[] GetNames()
|
||||
{
|
||||
GeneralName[] array = this.names;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C28A RID: 49802 RVA: 0x002C49D4 File Offset: 0x002C2BD4
|
||||
[Token(Token = "0x600C28A")]
|
||||
[Address(RVA = "0x272A830", Offset = "0x2729630", VA = "0x18272A830", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C28A)
|
||||
|
||||
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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600C28B RID: 49803 RVA: 0x002C49EC File Offset: 0x002C2BEC
|
||||
[Token(Token = "0x600C28B")]
|
||||
[Address(RVA = "0x272A890", Offset = "0x2729690", VA = "0x18272A890", 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: 0x04007AA2 RID: 31394
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AA2")]
|
||||
private readonly GeneralName[] names;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user