oh dear
This commit is contained in:
@@ -0,0 +1,470 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Net;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E04 RID: 7684
|
||||
[Token(Token = "0x2001E04")]
|
||||
public class GeneralName : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C274 RID: 49780 RVA: 0x002C4168 File Offset: 0x002C2368
|
||||
[Token(Token = "0x600C274")]
|
||||
[Address(RVA = "0x27298A0", Offset = "0x27286A0", VA = "0x1827298A0")]
|
||||
public GeneralName(X509Name directoryName)
|
||||
{
|
||||
this.obj = directoryName;
|
||||
this.tag = (int)((ulong)4L);
|
||||
}
|
||||
|
||||
// Token: 0x0600C275 RID: 49781 RVA: 0x002C418C File Offset: 0x002C238C
|
||||
[Token(Token = "0x600C275")]
|
||||
[Address(RVA = "0x582150", Offset = "0x580F50", VA = "0x180582150")]
|
||||
public GeneralName(Asn1Object name, int tag)
|
||||
{
|
||||
this.obj = name;
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
// Token: 0x0600C276 RID: 49782 RVA: 0x002C41B0 File Offset: 0x002C23B0
|
||||
[Token(Token = "0x600C276")]
|
||||
[Address(RVA = "0x2729860", Offset = "0x2728660", VA = "0x182729860")]
|
||||
public GeneralName(int tag, Asn1Encodable name)
|
||||
{
|
||||
this.tag = tag;
|
||||
this.obj = name;
|
||||
}
|
||||
|
||||
// Token: 0x0600C277 RID: 49783 RVA: 0x002C41D4 File Offset: 0x002C23D4
|
||||
[Token(Token = "0x600C277")]
|
||||
[Address(RVA = "0x27296B0", Offset = "0x27284B0", VA = "0x1827296B0")]
|
||||
public GeneralName(int tag, string name)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C277)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralName::.ctor(System.Int32,System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_6F:
|
||||
stloc:ArgumentException(var_7_7E, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("IP Address is invalid"), ldstr:string("name")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600C278 RID: 49784 RVA: 0x002C4260 File Offset: 0x002C2460
|
||||
[Token(Token = "0x600C278")]
|
||||
[Address(RVA = "0x2728FA0", Offset = "0x2727DA0", VA = "0x182728FA0")]
|
||||
public static GeneralName GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C278)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralName BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralName::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_7:
|
||||
brtrue(IL_00, ceq:bool(ldloc:object(obj), ldc.i4:int32[exp:object](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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600C279 RID: 49785 RVA: 0x002C4358 File Offset: 0x002C2558
|
||||
[Token(Token = "0x600C279")]
|
||||
[Address(RVA = "0x2728F80", Offset = "0x2727D80", VA = "0x182728F80")]
|
||||
public static GeneralName GetInstance(Asn1TaggedObject tagObj, bool explicitly)
|
||||
{
|
||||
return GeneralName.GetInstance(Asn1TaggedObject.GetInstance(tagObj, true));
|
||||
}
|
||||
|
||||
// Token: 0x17001E0A RID: 7690
|
||||
// (get) Token: 0x0600C27A RID: 49786 RVA: 0x002C4374 File Offset: 0x002C2574
|
||||
[Token(Token = "0x17001E0A")]
|
||||
public int TagNo
|
||||
{
|
||||
[Token(Token = "0x600C27A")]
|
||||
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720")]
|
||||
get
|
||||
{
|
||||
return this.tag;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E0B RID: 7691
|
||||
// (get) Token: 0x0600C27B RID: 49787 RVA: 0x002C4388 File Offset: 0x002C2588
|
||||
[Token(Token = "0x17001E0B")]
|
||||
public Asn1Encodable Name
|
||||
{
|
||||
[Token(Token = "0x600C27B")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.obj;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C27C RID: 49788 RVA: 0x002C439C File Offset: 0x002C259C
|
||||
[Token(Token = "0x600C27C")]
|
||||
[Address(RVA = "0x2729540", Offset = "0x2728340", VA = "0x182729540", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
int num = this.tag;
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append(num);
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append(": ");
|
||||
if (this.tag <= 5)
|
||||
{
|
||||
X509Name instance = X509Name.GetInstance(this.obj);
|
||||
int hashCode = instance.GetHashCode();
|
||||
string @string = DerIA5String.GetInstance(instance).GetString();
|
||||
}
|
||||
int hashCode2 = this.obj.GetHashCode();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C27D RID: 49789 RVA: 0x002C440C File Offset: 0x002C260C
|
||||
[Token(Token = "0x600C27D")]
|
||||
[Address(RVA = "0x272A130", Offset = "0x2728F30", VA = "0x18272A130")]
|
||||
private byte[] toGeneralNameEncoding(string ip)
|
||||
{
|
||||
if (!BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Net.IPAddress.IsValidIPv6WithNetmask(ip) && !BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Net.IPAddress.IsValidIPv6(ip))
|
||||
{
|
||||
if (BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Net.IPAddress.IsValidIPv4WithNetmask(ip) || !BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Net.IPAddress.IsValidIPv4(ip))
|
||||
{
|
||||
}
|
||||
uint num2;
|
||||
int num = ip.IndexOf((char)num2);
|
||||
byte[] array = new byte[8];
|
||||
int num3 = 0;
|
||||
string text = ip.Substring(num3, num);
|
||||
int num4 = 0;
|
||||
int num5 = 0;
|
||||
this.parseIPv4(text, array, num5);
|
||||
int num6 = num + 1;
|
||||
string text2 = ip.Substring(num6);
|
||||
int num7 = 0;
|
||||
int num8 = int.Parse(text2);
|
||||
if (num8 != 0)
|
||||
{
|
||||
num4 += num7;
|
||||
num4 -= num7;
|
||||
num4 += 4;
|
||||
num4++;
|
||||
while (num4 != num8)
|
||||
{
|
||||
}
|
||||
}
|
||||
return array;
|
||||
}
|
||||
uint num10;
|
||||
int num9 = ip.IndexOf((char)num10);
|
||||
byte[] array2 = new byte[32];
|
||||
int num11 = 0;
|
||||
string text3 = ip.Substring(num11, num9);
|
||||
int[] array3 = this.parseIPv6(text3);
|
||||
int num12 = 0;
|
||||
int num13 = 0;
|
||||
this.copyInts(array3, array2, num13);
|
||||
int num14 = num9 + 1;
|
||||
string text4 = ip.Substring(num14);
|
||||
int[] array4 = new int[8];
|
||||
int num15 = 0;
|
||||
int num16 = int.Parse(text4);
|
||||
int[] array5;
|
||||
if (num16 != 0)
|
||||
{
|
||||
num12 += num15;
|
||||
num12 -= num15;
|
||||
int num17 = array4[num12];
|
||||
num12++;
|
||||
array4[0] = num17;
|
||||
while (num12 != num16)
|
||||
{
|
||||
}
|
||||
array5 = this.parseIPv6(text4);
|
||||
}
|
||||
uint num18;
|
||||
this.copyInts(array5, array2, (int)num18);
|
||||
int[] array6 = this.parseIPv6(text4);
|
||||
int num19 = 0;
|
||||
this.copyInts(array6, array2, num19);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C27E RID: 49790 RVA: 0x002C4588 File Offset: 0x002C2788
|
||||
[Token(Token = "0x600C27E")]
|
||||
[Address(RVA = "0x2729990", Offset = "0x2728790", VA = "0x182729990")]
|
||||
private void parseIPv4Mask(string mask, byte[] addr, int offset)
|
||||
{
|
||||
int num = int.Parse(mask);
|
||||
int num2 = 0;
|
||||
if (num != 0)
|
||||
{
|
||||
num2++;
|
||||
while (num2 != num)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C27F RID: 49791 RVA: 0x002C45B0 File Offset: 0x002C27B0
|
||||
[Token(Token = "0x600C27F")]
|
||||
[Address(RVA = "0x2729A20", Offset = "0x2728820", VA = "0x182729A20")]
|
||||
private void parseIPv4(string ip, byte[] addr, int offset)
|
||||
{
|
||||
char[] array = new char[2];
|
||||
array[0] = (char)((uint)46);
|
||||
array[0] = (char)((uint)47);
|
||||
string[] array2 = ip.Split(array);
|
||||
int num = 0;
|
||||
int length = array2.Length;
|
||||
if (num < length)
|
||||
{
|
||||
int num2 = int.Parse(array2[num]);
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C280 RID: 49792 RVA: 0x002C4608 File Offset: 0x002C2808
|
||||
[Token(Token = "0x600C280")]
|
||||
[Address(RVA = "0x272A080", Offset = "0x2728E80", VA = "0x18272A080")]
|
||||
private int[] parseMask(string mask)
|
||||
{
|
||||
int[] array = new int[8];
|
||||
int num = 0;
|
||||
int num2 = int.Parse(mask);
|
||||
int num3 = 0;
|
||||
if (num2 != 0)
|
||||
{
|
||||
num3 += num;
|
||||
num3 -= num;
|
||||
int num4 = array[num3];
|
||||
num3++;
|
||||
array[0] = num4;
|
||||
while (num3 != num2)
|
||||
{
|
||||
}
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C281 RID: 49793 RVA: 0x002C4660 File Offset: 0x002C2860
|
||||
[Token(Token = "0x600C281")]
|
||||
[Address(RVA = "0x27298D0", Offset = "0x27286D0", VA = "0x1827298D0")]
|
||||
private void copyInts(int[] parsedIp, byte[] addr, int offSet)
|
||||
{
|
||||
int num = 0;
|
||||
int length = parsedIp.Length;
|
||||
if (num != length)
|
||||
{
|
||||
int num2 = parsedIp[num];
|
||||
int num3 = parsedIp[num];
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C282 RID: 49794 RVA: 0x002C4694 File Offset: 0x002C2894
|
||||
[Token(Token = "0x600C282")]
|
||||
[Address(RVA = "0x2729B60", Offset = "0x2728960", VA = "0x182729B60")]
|
||||
private int[] parseIPv6(string ip)
|
||||
{
|
||||
int num4;
|
||||
int[] array3;
|
||||
for (;;)
|
||||
{
|
||||
if (Platform.StartsWith(ip, "::"))
|
||||
{
|
||||
goto IL_2E;
|
||||
}
|
||||
if (Platform.EndsWith(ip, "::"))
|
||||
{
|
||||
int stringLength = ip.m_stringLength;
|
||||
int num = 0;
|
||||
string text = ip.Substring(num, stringLength);
|
||||
goto IL_2E;
|
||||
}
|
||||
IL_36:
|
||||
uint num2;
|
||||
char[] array = new char[] { (char)num2 };
|
||||
int num3 = 0;
|
||||
string text2;
|
||||
string[] array2 = text2.Split(array);
|
||||
num4 = 0;
|
||||
array3 = new int[0];
|
||||
if (num4 < num3)
|
||||
{
|
||||
num4 += num4;
|
||||
num4++;
|
||||
}
|
||||
int num5 = 0;
|
||||
if (num4 == 0)
|
||||
{
|
||||
goto IL_146;
|
||||
}
|
||||
if (num4 < num5)
|
||||
{
|
||||
num4 += num4;
|
||||
num4++;
|
||||
}
|
||||
if (num4 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
IL_2E:
|
||||
text2 = ip.Substring(1);
|
||||
goto IL_36;
|
||||
}
|
||||
char[] array4 = new char[1];
|
||||
string[] array5;
|
||||
int num6 = int.Parse(array5[0]);
|
||||
int num7 = int.Parse(array5[1]);
|
||||
num4++;
|
||||
array3[0] = num6;
|
||||
num6 = int.Parse(array5[2]);
|
||||
string text3 = array5[3];
|
||||
int num8 = 0;
|
||||
int num9 = int.Parse(text3);
|
||||
num4++;
|
||||
array3[0] = num6;
|
||||
num8 += num8;
|
||||
num4 += 19;
|
||||
num8 += num8;
|
||||
num4++;
|
||||
num4 += 19;
|
||||
num4++;
|
||||
int num10;
|
||||
array3[0] = num10;
|
||||
num4++;
|
||||
array3[0] = num4;
|
||||
IL_146:
|
||||
int num11 = array3.Length;
|
||||
if (num4 != num11)
|
||||
{
|
||||
num11 -= num4;
|
||||
num4 -= num4;
|
||||
num11 += num4;
|
||||
Array.Copy(array3, num4, array3, num11, num4);
|
||||
int num12 = array3.Length;
|
||||
num12 -= num4;
|
||||
num12 += num4;
|
||||
if (num4 != num12)
|
||||
{
|
||||
num4++;
|
||||
array3[0] = num4;
|
||||
}
|
||||
}
|
||||
return array3;
|
||||
}
|
||||
|
||||
// Token: 0x0600C283 RID: 49795 RVA: 0x002C4850 File Offset: 0x002C2A50
|
||||
[Token(Token = "0x600C283")]
|
||||
[Address(RVA = "0x27294C0", Offset = "0x27282C0", VA = "0x1827294C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C283)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralName::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:int32(var_0_06, ldfld:int32(GeneralName::tag, ldloc:GeneralName(this)))
|
||||
stloc:Asn1Encodable(var_1_0D, ldfld:Asn1Encodable(GeneralName::obj, ldloc:GeneralName(this)))
|
||||
stloc:DerTaggedObject(var_2_17, newobj:DerTaggedObject(DerTaggedObject::.ctor, ldloc:bool(var_4), ldloc:int32(var_0_06), ldloc:Asn1Encodable(var_1_0D)))
|
||||
stloc:bool(var_4, ceq:bool(ldloc:int32(var_0_06), ldc.i4:int32(4)))
|
||||
}
|
||||
|
||||
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: 0x04007A97 RID: 31383
|
||||
[Token(Token = "0x4007A97")]
|
||||
public const int OtherName = 0;
|
||||
|
||||
// Token: 0x04007A98 RID: 31384
|
||||
[Token(Token = "0x4007A98")]
|
||||
public const int Rfc822Name = 1;
|
||||
|
||||
// Token: 0x04007A99 RID: 31385
|
||||
[Token(Token = "0x4007A99")]
|
||||
public const int DnsName = 2;
|
||||
|
||||
// Token: 0x04007A9A RID: 31386
|
||||
[Token(Token = "0x4007A9A")]
|
||||
public const int X400Address = 3;
|
||||
|
||||
// Token: 0x04007A9B RID: 31387
|
||||
[Token(Token = "0x4007A9B")]
|
||||
public const int DirectoryName = 4;
|
||||
|
||||
// Token: 0x04007A9C RID: 31388
|
||||
[Token(Token = "0x4007A9C")]
|
||||
public const int EdiPartyName = 5;
|
||||
|
||||
// Token: 0x04007A9D RID: 31389
|
||||
[Token(Token = "0x4007A9D")]
|
||||
public const int UniformResourceIdentifier = 6;
|
||||
|
||||
// Token: 0x04007A9E RID: 31390
|
||||
[Token(Token = "0x4007A9E")]
|
||||
public const int IPAddress = 7;
|
||||
|
||||
// Token: 0x04007A9F RID: 31391
|
||||
[Token(Token = "0x4007A9F")]
|
||||
public const int RegisteredID = 8;
|
||||
|
||||
// Token: 0x04007AA0 RID: 31392
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AA0")]
|
||||
internal readonly Asn1Encodable obj;
|
||||
|
||||
// Token: 0x04007AA1 RID: 31393
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AA1")]
|
||||
internal readonly int tag;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user