Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

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: 0x02001FA1 RID: 8097
[Token(Token = "0x2001FA1")]
public class Admissions : Asn1Encodable
{
// Token: 0x0600CABD RID: 51901 RVA: 0x002E0190 File Offset: 0x002DE390
[Token(Token = "0x600CABD")]
[Address(RVA = "0x2EA2DA0", Offset = "0x2EA1DA0", VA = "0x182EA2DA0")]
public static Admissions GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CABD)
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: 0x0600CABE RID: 51902 RVA: 0x002E01E4 File Offset: 0x002DE3E4
[Token(Token = "0x600CABE")]
[Address(RVA = "0x2EA34E0", Offset = "0x2EA24E0", VA = "0x182EA34E0")]
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: 0x0600CABF RID: 51903 RVA: 0x002E02DC File Offset: 0x002DE4DC
[Token(Token = "0x600CABF")]
[Address(RVA = "0x2EA3450", Offset = "0x2EA2450", VA = "0x182EA3450")]
public Admissions(GeneralName admissionAuthority, NamingAuthority namingAuthority, ProfessionInfo[] professionInfos)
{
this.admissionAuthority = admissionAuthority;
this.namingAuthority = namingAuthority;
DerSequence derSequence = new DerSequence(professionInfos);
this.professionInfos = derSequence;
}
// Token: 0x17001FAC RID: 8108
// (get) Token: 0x0600CAC0 RID: 51904 RVA: 0x002E030C File Offset: 0x002DE50C
[Token(Token = "0x17001FAC")]
public virtual GeneralName AdmissionAuthority
{
[Token(Token = "0x600CAC0")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
get
{
return this.admissionAuthority;
}
}
// Token: 0x17001FAD RID: 8109
// (get) Token: 0x0600CAC1 RID: 51905 RVA: 0x002E0320 File Offset: 0x002DE520
[Token(Token = "0x17001FAD")]
public virtual NamingAuthority NamingAuthority
{
[Token(Token = "0x600CAC1")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
get
{
return this.namingAuthority;
}
}
// Token: 0x0600CAC2 RID: 51906 RVA: 0x002E0334 File Offset: 0x002DE534
[Token(Token = "0x600CAC2")]
[Address(RVA = "0x2EA2FA0", Offset = "0x2EA1FA0", VA = "0x182EA2FA0")]
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: 0x0600CAC3 RID: 51907 RVA: 0x002E03A8 File Offset: 0x002DE5A8
[Token(Token = "0x600CAC3")]
[Address(RVA = "0x2EA31C0", Offset = "0x2EA21C0", VA = "0x182EA31C0", 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: 0x04008068 RID: 32872
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008068")]
private readonly GeneralName admissionAuthority;
// Token: 0x04008069 RID: 32873
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4008069")]
private readonly NamingAuthority namingAuthority;
// Token: 0x0400806A RID: 32874
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400806A")]
private readonly Asn1Sequence professionInfos;
}
}