a
This commit is contained in:
+237
@@ -0,0 +1,237 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E0D RID: 7693
|
||||
[Token(Token = "0x2001E0D")]
|
||||
public class NameConstraints : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C2C2 RID: 49858 RVA: 0x002C5BF0 File Offset: 0x002C3DF0
|
||||
[Token(Token = "0x600C2C2")]
|
||||
[Address(RVA = "0x2B391C0", Offset = "0x2B37FC0", VA = "0x182B391C0")]
|
||||
public static NameConstraints GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2C2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.NameConstraints BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.NameConstraints::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C)), 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: 0x0600C2C3 RID: 49859 RVA: 0x002C5C44 File Offset: 0x002C3E44
|
||||
[Token(Token = "0x600C2C3")]
|
||||
[Address(RVA = "0x2B395D0", Offset = "0x2B383D0", VA = "0x182B395D0")]
|
||||
public NameConstraints(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
Asn1Sequence instance2;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (num < enumerator)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
ulong num2;
|
||||
num2 += (ulong)1L;
|
||||
int num3 = 0;
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_6A;
|
||||
}
|
||||
Asn1Sequence instance;
|
||||
if (num3 == 0)
|
||||
{
|
||||
int num4 = 0;
|
||||
instance = Asn1Sequence.GetInstance(num, num4 != 0);
|
||||
this.permitted = instance;
|
||||
}
|
||||
while (instance != (ulong)1L)
|
||||
{
|
||||
}
|
||||
int num5 = 0;
|
||||
instance2 = Asn1Sequence.GetInstance(num, num5 != 0);
|
||||
this.excluded = instance2;
|
||||
}
|
||||
if (instance2 != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_6A:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2C4 RID: 49860 RVA: 0x002C5CC8 File Offset: 0x002C3EC8
|
||||
[Token(Token = "0x600C2C4")]
|
||||
[Address(RVA = "0x2B397E0", Offset = "0x2B385E0", VA = "0x182B397E0")]
|
||||
public NameConstraints(ArrayList permitted, ArrayList excluded)
|
||||
{
|
||||
if (permitted != 0)
|
||||
{
|
||||
DerSequence derSequence = this.CreateSequence(permitted);
|
||||
this.permitted = derSequence;
|
||||
}
|
||||
if (excluded != 0)
|
||||
{
|
||||
DerSequence derSequence2 = this.CreateSequence(excluded);
|
||||
this.excluded = derSequence2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2C5 RID: 49861 RVA: 0x002C5D04 File Offset: 0x002C3F04
|
||||
[Token(Token = "0x600C2C5")]
|
||||
[Address(RVA = "0x2B397E0", Offset = "0x2B385E0", VA = "0x182B397E0")]
|
||||
public NameConstraints(IList permitted, IList excluded)
|
||||
{
|
||||
if (permitted != 0)
|
||||
{
|
||||
DerSequence derSequence = this.CreateSequence(permitted);
|
||||
this.permitted = derSequence;
|
||||
}
|
||||
if (excluded != 0)
|
||||
{
|
||||
DerSequence derSequence2 = this.CreateSequence(excluded);
|
||||
this.excluded = derSequence2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2C6 RID: 49862 RVA: 0x002C5D40 File Offset: 0x002C3F40
|
||||
[Token(Token = "0x600C2C6")]
|
||||
[Address(RVA = "0x2B38F30", Offset = "0x2B37D30", VA = "0x182B38F30")]
|
||||
private DerSequence CreateSequence(IList subtrees)
|
||||
{
|
||||
GeneralSubtree[] array;
|
||||
int num;
|
||||
do
|
||||
{
|
||||
array = new GeneralSubtree[0];
|
||||
num = 0;
|
||||
if (num < subtrees)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num >= array)
|
||||
{
|
||||
goto IL_4B;
|
||||
}
|
||||
uint num2;
|
||||
if (num < (int)num2)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
ulong num3;
|
||||
num3 += num3;
|
||||
num3 += num3;
|
||||
}
|
||||
while (num == 0 || num == 0);
|
||||
num++;
|
||||
array[0] = num;
|
||||
IL_4B:
|
||||
return new DerSequence(array);
|
||||
}
|
||||
|
||||
// Token: 0x17001E1E RID: 7710
|
||||
// (get) Token: 0x0600C2C7 RID: 49863 RVA: 0x002C5DA4 File Offset: 0x002C3FA4
|
||||
[Token(Token = "0x17001E1E")]
|
||||
public Asn1Sequence PermittedSubtrees
|
||||
{
|
||||
[Token(Token = "0x600C2C7")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.permitted;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E1F RID: 7711
|
||||
// (get) Token: 0x0600C2C8 RID: 49864 RVA: 0x002C5DB8 File Offset: 0x002C3FB8
|
||||
[Token(Token = "0x17001E1F")]
|
||||
public Asn1Sequence ExcludedSubtrees
|
||||
{
|
||||
[Token(Token = "0x600C2C8")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.excluded;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2C9 RID: 49865 RVA: 0x002C5DCC File Offset: 0x002C3FCC
|
||||
[Token(Token = "0x600C2C9")]
|
||||
[Address(RVA = "0x2B393C0", Offset = "0x2B381C0", VA = "0x182B393C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.permitted != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
Asn1Sequence asn1Sequence = this.permitted;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, asn1Sequence);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (this.excluded != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Sequence asn1Sequence2 = this.excluded;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, asn1Sequence2);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007AD0 RID: 31440
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AD0")]
|
||||
private Asn1Sequence permitted;
|
||||
|
||||
// Token: 0x04007AD1 RID: 31441
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AD1")]
|
||||
private Asn1Sequence excluded;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user