240 lines
8.6 KiB
C#
240 lines
8.6 KiB
C#
using System;
|
|
using System.Collections;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509
|
|
{
|
|
// Token: 0x02001EC1 RID: 7873
|
|
[Token(Token = "0x2001EC1")]
|
|
public class Admissions : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C6EF RID: 50927 RVA: 0x002D791C File Offset: 0x002D5B1C
|
|
[Token(Token = "0x600C6EF")]
|
|
[Address(RVA = "0x2833480", Offset = "0x2832280", VA = "0x182833480")]
|
|
public static Admissions GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C6EF)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509.Admissions BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509.Admissions::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 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600C6F0 RID: 50928 RVA: 0x002D7970 File Offset: 0x002D5B70
|
|
[Token(Token = "0x600C6F0")]
|
|
[Address(RVA = "0x2833BC0", Offset = "0x28329C0", VA = "0x182833BC0")]
|
|
private Admissions(Asn1Sequence seq)
|
|
{
|
|
int num2;
|
|
for (;;)
|
|
{
|
|
base..ctor();
|
|
IEnumerator enumerator = seq.GetEnumerator();
|
|
if (enumerator == 0)
|
|
{
|
|
Asn1Sequence instance = Asn1Sequence.GetInstance(0);
|
|
this.professionInfos = instance;
|
|
if (instance != 0)
|
|
{
|
|
goto IL_8A;
|
|
}
|
|
}
|
|
if (enumerator != 0)
|
|
{
|
|
NamingAuthority namingAuthority;
|
|
if (enumerator != 0)
|
|
{
|
|
if (enumerator == 0)
|
|
{
|
|
goto IL_C8;
|
|
}
|
|
int num = 0;
|
|
if (enumerator == 0)
|
|
{
|
|
goto IL_C8;
|
|
}
|
|
if (num == 0)
|
|
{
|
|
GeneralName generalName;
|
|
this.admissionAuthority = generalName;
|
|
}
|
|
if (enumerator != (ulong)1L)
|
|
{
|
|
goto IL_A6;
|
|
}
|
|
this.namingAuthority = namingAuthority;
|
|
}
|
|
while (namingAuthority == 0)
|
|
{
|
|
}
|
|
while (namingAuthority == 0)
|
|
{
|
|
}
|
|
num2 = 0;
|
|
if (namingAuthority != 0)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
NamingAuthority instance2 = NamingAuthority.GetInstance(num2, true);
|
|
this.namingAuthority = instance2;
|
|
return;
|
|
IL_8A:
|
|
string typeName = Platform.GetTypeName(instance2);
|
|
ArgumentException ex = new ArgumentException("Bad object encountered: " + typeName);
|
|
IL_A6:
|
|
throw new NullReferenceException();
|
|
IL_C8:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C6F1 RID: 50929 RVA: 0x002D7A68 File Offset: 0x002D5C68
|
|
[Token(Token = "0x600C6F1")]
|
|
[Address(RVA = "0x2833B30", Offset = "0x2832930", VA = "0x182833B30")]
|
|
public Admissions(GeneralName admissionAuthority, NamingAuthority namingAuthority, ProfessionInfo[] professionInfos)
|
|
{
|
|
this.admissionAuthority = admissionAuthority;
|
|
this.namingAuthority = namingAuthority;
|
|
DerSequence derSequence = new DerSequence(professionInfos);
|
|
this.professionInfos = derSequence;
|
|
}
|
|
|
|
// Token: 0x17001F0F RID: 7951
|
|
// (get) Token: 0x0600C6F2 RID: 50930 RVA: 0x002D7A98 File Offset: 0x002D5C98
|
|
[Token(Token = "0x17001F0F")]
|
|
public virtual GeneralName AdmissionAuthority
|
|
{
|
|
[Token(Token = "0x600C6F2")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
|
get
|
|
{
|
|
return this.admissionAuthority;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F10 RID: 7952
|
|
// (get) Token: 0x0600C6F3 RID: 50931 RVA: 0x002D7AAC File Offset: 0x002D5CAC
|
|
[Token(Token = "0x17001F10")]
|
|
public virtual NamingAuthority NamingAuthority
|
|
{
|
|
[Token(Token = "0x600C6F3")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
|
get
|
|
{
|
|
return this.namingAuthority;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C6F4 RID: 50932 RVA: 0x002D7AC0 File Offset: 0x002D5CC0
|
|
[Token(Token = "0x600C6F4")]
|
|
[Address(RVA = "0x2833680", Offset = "0x2832480", VA = "0x182833680")]
|
|
public ProfessionInfo[] GetProfessionInfos()
|
|
{
|
|
int num;
|
|
IEnumerator enumerator;
|
|
for (;;)
|
|
{
|
|
num = 0;
|
|
Asn1Sequence asn1Sequence = this.professionInfos;
|
|
Asn1Encodable asn1Encodable;
|
|
ProfessionInfo[] array = new ProfessionInfo[asn1Encodable];
|
|
enumerator = this.professionInfos.GetEnumerator();
|
|
if (enumerator != 0)
|
|
{
|
|
break;
|
|
}
|
|
if (enumerator != 0)
|
|
{
|
|
}
|
|
if (num == 0)
|
|
{
|
|
return array;
|
|
}
|
|
}
|
|
if (enumerator == 0)
|
|
{
|
|
}
|
|
if (enumerator != 0)
|
|
{
|
|
num++;
|
|
throw new ArrayTypeMismatchException();
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C6F5 RID: 50933 RVA: 0x002D7B34 File Offset: 0x002D5D34
|
|
[Token(Token = "0x600C6F5")]
|
|
[Address(RVA = "0x28338A0", Offset = "0x28326A0", VA = "0x1828338A0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
if (this.admissionAuthority != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
GeneralName generalName = this.admissionAuthority;
|
|
int num;
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, generalName);
|
|
num = 0;
|
|
if (derTaggedObject != 0)
|
|
{
|
|
}
|
|
array[0] = derTaggedObject;
|
|
asn1EncodableVector.Add(array);
|
|
}
|
|
if (this.namingAuthority != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
NamingAuthority namingAuthority = this.namingAuthority;
|
|
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, namingAuthority);
|
|
if (derTaggedObject2 != 0)
|
|
{
|
|
}
|
|
array2[0] = derTaggedObject2;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
|
Asn1Sequence asn1Sequence = this.professionInfos;
|
|
if (asn1Sequence != 0)
|
|
{
|
|
}
|
|
array3[0] = asn1Sequence;
|
|
asn1EncodableVector.Add(array3);
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04007EAF RID: 32431
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007EAF")]
|
|
private readonly GeneralName admissionAuthority;
|
|
|
|
// Token: 0x04007EB0 RID: 32432
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007EB0")]
|
|
private readonly NamingAuthority namingAuthority;
|
|
|
|
// Token: 0x04007EB1 RID: 32433
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007EB1")]
|
|
private readonly Asn1Sequence professionInfos;
|
|
}
|
|
}
|