471 lines
21 KiB
C#
471 lines
21 KiB
C#
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: 0x02001EE4 RID: 7908
|
|
[Token(Token = "0x2001EE4")]
|
|
public class GeneralName : Asn1Encodable, IAsn1Choice
|
|
{
|
|
// Token: 0x0600C642 RID: 50754 RVA: 0x002CC998 File Offset: 0x002CAB98
|
|
[Token(Token = "0x600C642")]
|
|
[Address(RVA = "0x2E7A540", Offset = "0x2E79540", VA = "0x182E7A540")]
|
|
public GeneralName(X509Name directoryName)
|
|
{
|
|
this.obj = directoryName;
|
|
this.tag = (int)((ulong)4L);
|
|
}
|
|
|
|
// Token: 0x0600C643 RID: 50755 RVA: 0x002CC9BC File Offset: 0x002CABBC
|
|
[Token(Token = "0x600C643")]
|
|
[Address(RVA = "0xE66140", Offset = "0xE65140", VA = "0x180E66140")]
|
|
public GeneralName(Asn1Object name, int tag)
|
|
{
|
|
this.obj = name;
|
|
this.tag = tag;
|
|
}
|
|
|
|
// Token: 0x0600C644 RID: 50756 RVA: 0x002CC9E0 File Offset: 0x002CABE0
|
|
[Token(Token = "0x600C644")]
|
|
[Address(RVA = "0x2E7A500", Offset = "0x2E79500", VA = "0x182E7A500")]
|
|
public GeneralName(int tag, Asn1Encodable name)
|
|
{
|
|
this.tag = tag;
|
|
this.obj = name;
|
|
}
|
|
|
|
// Token: 0x0600C645 RID: 50757 RVA: 0x002CCA04 File Offset: 0x002CAC04
|
|
[Token(Token = "0x600C645")]
|
|
[Address(RVA = "0x2E7A2F0", Offset = "0x2E792F0", VA = "0x182E7A2F0")]
|
|
public GeneralName(int tag, string name)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C645)
|
|
|
|
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_79:
|
|
stloc:ArgumentException(var_11_88, 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: 0x0600C646 RID: 50758 RVA: 0x002CCA9C File Offset: 0x002CAC9C
|
|
[Token(Token = "0x600C646")]
|
|
[Address(RVA = "0x2E79BA0", Offset = "0x2E78BA0", VA = "0x182E79BA0")]
|
|
public static GeneralName GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C646)
|
|
|
|
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: 0x0600C647 RID: 50759 RVA: 0x002CCB9C File Offset: 0x002CAD9C
|
|
[Token(Token = "0x600C647")]
|
|
[Address(RVA = "0x2E79B80", Offset = "0x2E78B80", VA = "0x182E79B80")]
|
|
public static GeneralName GetInstance(Asn1TaggedObject tagObj, bool explicitly)
|
|
{
|
|
return GeneralName.GetInstance(Asn1TaggedObject.GetInstance(tagObj, true));
|
|
}
|
|
|
|
// Token: 0x17001EA7 RID: 7847
|
|
// (get) Token: 0x0600C648 RID: 50760 RVA: 0x002CCBB8 File Offset: 0x002CADB8
|
|
[Token(Token = "0x17001EA7")]
|
|
public int TagNo
|
|
{
|
|
[Token(Token = "0x600C648")]
|
|
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540")]
|
|
get
|
|
{
|
|
return this.tag;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001EA8 RID: 7848
|
|
// (get) Token: 0x0600C649 RID: 50761 RVA: 0x002CCBCC File Offset: 0x002CADCC
|
|
[Token(Token = "0x17001EA8")]
|
|
public Asn1Encodable Name
|
|
{
|
|
[Token(Token = "0x600C649")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.obj;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C64A RID: 50762 RVA: 0x002CCBE0 File Offset: 0x002CADE0
|
|
[Token(Token = "0x600C64A")]
|
|
[Address(RVA = "0x2E7A180", Offset = "0x2E79180", VA = "0x182E7A180", 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: 0x0600C64B RID: 50763 RVA: 0x002CCC50 File Offset: 0x002CAE50
|
|
[Token(Token = "0x600C64B")]
|
|
[Address(RVA = "0x2E7ADD0", Offset = "0x2E79DD0", VA = "0x182E7ADD0")]
|
|
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: 0x0600C64C RID: 50764 RVA: 0x002CCDCC File Offset: 0x002CAFCC
|
|
[Token(Token = "0x600C64C")]
|
|
[Address(RVA = "0x2E7A630", Offset = "0x2E79630", VA = "0x182E7A630")]
|
|
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: 0x0600C64D RID: 50765 RVA: 0x002CCDF4 File Offset: 0x002CAFF4
|
|
[Token(Token = "0x600C64D")]
|
|
[Address(RVA = "0x2E7A6C0", Offset = "0x2E796C0", VA = "0x182E7A6C0")]
|
|
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: 0x0600C64E RID: 50766 RVA: 0x002CCE4C File Offset: 0x002CB04C
|
|
[Token(Token = "0x600C64E")]
|
|
[Address(RVA = "0x2E7AD20", Offset = "0x2E79D20", VA = "0x182E7AD20")]
|
|
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: 0x0600C64F RID: 50767 RVA: 0x002CCEA4 File Offset: 0x002CB0A4
|
|
[Token(Token = "0x600C64F")]
|
|
[Address(RVA = "0x2E7A570", Offset = "0x2E79570", VA = "0x182E7A570")]
|
|
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: 0x0600C650 RID: 50768 RVA: 0x002CCED8 File Offset: 0x002CB0D8
|
|
[Token(Token = "0x600C650")]
|
|
[Address(RVA = "0x2E7A800", Offset = "0x2E79800", VA = "0x182E7A800")]
|
|
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: 0x0600C651 RID: 50769 RVA: 0x002CD094 File Offset: 0x002CB294
|
|
[Token(Token = "0x600C651")]
|
|
[Address(RVA = "0x2E7A100", Offset = "0x2E79100", VA = "0x182E7A100", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C651)
|
|
|
|
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: 0x04007C50 RID: 31824
|
|
[Token(Token = "0x4007C50")]
|
|
public const int OtherName = 0;
|
|
|
|
// Token: 0x04007C51 RID: 31825
|
|
[Token(Token = "0x4007C51")]
|
|
public const int Rfc822Name = 1;
|
|
|
|
// Token: 0x04007C52 RID: 31826
|
|
[Token(Token = "0x4007C52")]
|
|
public const int DnsName = 2;
|
|
|
|
// Token: 0x04007C53 RID: 31827
|
|
[Token(Token = "0x4007C53")]
|
|
public const int X400Address = 3;
|
|
|
|
// Token: 0x04007C54 RID: 31828
|
|
[Token(Token = "0x4007C54")]
|
|
public const int DirectoryName = 4;
|
|
|
|
// Token: 0x04007C55 RID: 31829
|
|
[Token(Token = "0x4007C55")]
|
|
public const int EdiPartyName = 5;
|
|
|
|
// Token: 0x04007C56 RID: 31830
|
|
[Token(Token = "0x4007C56")]
|
|
public const int UniformResourceIdentifier = 6;
|
|
|
|
// Token: 0x04007C57 RID: 31831
|
|
[Token(Token = "0x4007C57")]
|
|
public const int IPAddress = 7;
|
|
|
|
// Token: 0x04007C58 RID: 31832
|
|
[Token(Token = "0x4007C58")]
|
|
public const int RegisteredID = 8;
|
|
|
|
// Token: 0x04007C59 RID: 31833
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007C59")]
|
|
internal readonly Asn1Encodable obj;
|
|
|
|
// Token: 0x04007C5A RID: 31834
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007C5A")]
|
|
internal readonly int tag;
|
|
}
|
|
}
|