473 lines
21 KiB
C#
473 lines
21 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
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: 0x02001827 RID: 6183
|
|
[Token(Token = "0x2001827")]
|
|
[StructLayout(3)]
|
|
public class GeneralName : Asn1Encodable, IAsn1Choice
|
|
{
|
|
// Token: 0x0600A69A RID: 42650 RVA: 0x0026BB8C File Offset: 0x00269D8C
|
|
[Token(Token = "0x600A69A")]
|
|
[Address(RVA = "0x2B05770", Offset = "0x2B04170", VA = "0x182B05770")]
|
|
public GeneralName(X509Name directoryName)
|
|
{
|
|
this.obj = directoryName;
|
|
this.tag = (int)((ulong)4L);
|
|
}
|
|
|
|
// Token: 0x0600A69B RID: 42651 RVA: 0x0026BBB0 File Offset: 0x00269DB0
|
|
[Token(Token = "0x600A69B")]
|
|
[Address(RVA = "0xB05840", Offset = "0xB04240", VA = "0x180B05840")]
|
|
public GeneralName(Asn1Object name, int tag)
|
|
{
|
|
this.obj = name;
|
|
this.tag = tag;
|
|
}
|
|
|
|
// Token: 0x0600A69C RID: 42652 RVA: 0x0026BBD4 File Offset: 0x00269DD4
|
|
[Token(Token = "0x600A69C")]
|
|
[Address(RVA = "0x2B05730", Offset = "0x2B04130", VA = "0x182B05730")]
|
|
public GeneralName(int tag, Asn1Encodable name)
|
|
{
|
|
this.tag = tag;
|
|
this.obj = name;
|
|
}
|
|
|
|
// Token: 0x0600A69D RID: 42653 RVA: 0x0026BBF8 File Offset: 0x00269DF8
|
|
[Token(Token = "0x600A69D")]
|
|
[Address(RVA = "0x2B05580", Offset = "0x2B03F80", VA = "0x182B05580")]
|
|
public GeneralName(int tag, string name)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A69D)
|
|
|
|
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: 0x0600A69E RID: 42654 RVA: 0x0026BC84 File Offset: 0x00269E84
|
|
[Token(Token = "0x600A69E")]
|
|
[Address(RVA = "0x2B04E70", Offset = "0x2B03870", VA = "0x182B04E70")]
|
|
public static GeneralName GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A69E)
|
|
|
|
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: 0x0600A69F RID: 42655 RVA: 0x0026BD7C File Offset: 0x00269F7C
|
|
[Token(Token = "0x600A69F")]
|
|
[Address(RVA = "0x2B04E50", Offset = "0x2B03850", VA = "0x182B04E50")]
|
|
public static GeneralName GetInstance(Asn1TaggedObject tagObj, bool explicitly)
|
|
{
|
|
return GeneralName.GetInstance(Asn1TaggedObject.GetInstance(tagObj, true));
|
|
}
|
|
|
|
// Token: 0x17001A09 RID: 6665
|
|
// (get) Token: 0x0600A6A0 RID: 42656 RVA: 0x0026BD98 File Offset: 0x00269F98
|
|
[Token(Token = "0x17001A09")]
|
|
public int TagNo
|
|
{
|
|
[Token(Token = "0x600A6A0")]
|
|
[Address(RVA = "0x3EE8D0", Offset = "0x3ED2D0", VA = "0x1803EE8D0")]
|
|
get
|
|
{
|
|
return this.tag;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001A0A RID: 6666
|
|
// (get) Token: 0x0600A6A1 RID: 42657 RVA: 0x0026BDAC File Offset: 0x00269FAC
|
|
[Token(Token = "0x17001A0A")]
|
|
public Asn1Encodable Name
|
|
{
|
|
[Token(Token = "0x600A6A1")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
|
get
|
|
{
|
|
return this.obj;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600A6A2 RID: 42658 RVA: 0x0026BDC0 File Offset: 0x00269FC0
|
|
[Token(Token = "0x600A6A2")]
|
|
[Address(RVA = "0x2B05410", Offset = "0x2B03E10", VA = "0x182B05410", 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: 0x0600A6A3 RID: 42659 RVA: 0x0026BE30 File Offset: 0x0026A030
|
|
[Token(Token = "0x600A6A3")]
|
|
[Address(RVA = "0x2B06000", Offset = "0x2B04A00", VA = "0x182B06000")]
|
|
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: 0x0600A6A4 RID: 42660 RVA: 0x0026BFAC File Offset: 0x0026A1AC
|
|
[Token(Token = "0x600A6A4")]
|
|
[Address(RVA = "0x2B05860", Offset = "0x2B04260", VA = "0x182B05860")]
|
|
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: 0x0600A6A5 RID: 42661 RVA: 0x0026BFD4 File Offset: 0x0026A1D4
|
|
[Token(Token = "0x600A6A5")]
|
|
[Address(RVA = "0x2B058F0", Offset = "0x2B042F0", VA = "0x182B058F0")]
|
|
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: 0x0600A6A6 RID: 42662 RVA: 0x0026C02C File Offset: 0x0026A22C
|
|
[Token(Token = "0x600A6A6")]
|
|
[Address(RVA = "0x2B05F50", Offset = "0x2B04950", VA = "0x182B05F50")]
|
|
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: 0x0600A6A7 RID: 42663 RVA: 0x0026C084 File Offset: 0x0026A284
|
|
[Token(Token = "0x600A6A7")]
|
|
[Address(RVA = "0x2B057A0", Offset = "0x2B041A0", VA = "0x182B057A0")]
|
|
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: 0x0600A6A8 RID: 42664 RVA: 0x0026C0B8 File Offset: 0x0026A2B8
|
|
[Token(Token = "0x600A6A8")]
|
|
[Address(RVA = "0x2B05A30", Offset = "0x2B04430", VA = "0x182B05A30")]
|
|
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: 0x0600A6A9 RID: 42665 RVA: 0x0026C274 File Offset: 0x0026A474
|
|
[Token(Token = "0x600A6A9")]
|
|
[Address(RVA = "0x2B05390", Offset = "0x2B03D90", VA = "0x182B05390", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A6A9)
|
|
|
|
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: 0x04006C54 RID: 27732
|
|
[Token(Token = "0x4006C54")]
|
|
public const int OtherName = 0;
|
|
|
|
// Token: 0x04006C55 RID: 27733
|
|
[Token(Token = "0x4006C55")]
|
|
public const int Rfc822Name = 1;
|
|
|
|
// Token: 0x04006C56 RID: 27734
|
|
[Token(Token = "0x4006C56")]
|
|
public const int DnsName = 2;
|
|
|
|
// Token: 0x04006C57 RID: 27735
|
|
[Token(Token = "0x4006C57")]
|
|
public const int X400Address = 3;
|
|
|
|
// Token: 0x04006C58 RID: 27736
|
|
[Token(Token = "0x4006C58")]
|
|
public const int DirectoryName = 4;
|
|
|
|
// Token: 0x04006C59 RID: 27737
|
|
[Token(Token = "0x4006C59")]
|
|
public const int EdiPartyName = 5;
|
|
|
|
// Token: 0x04006C5A RID: 27738
|
|
[Token(Token = "0x4006C5A")]
|
|
public const int UniformResourceIdentifier = 6;
|
|
|
|
// Token: 0x04006C5B RID: 27739
|
|
[Token(Token = "0x4006C5B")]
|
|
public const int IPAddress = 7;
|
|
|
|
// Token: 0x04006C5C RID: 27740
|
|
[Token(Token = "0x4006C5C")]
|
|
public const int RegisteredID = 8;
|
|
|
|
// Token: 0x04006C5D RID: 27741
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006C5D")]
|
|
internal readonly Asn1Encodable obj;
|
|
|
|
// Token: 0x04006C5E RID: 27742
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006C5E")]
|
|
internal readonly int tag;
|
|
}
|
|
}
|