scripts
This commit is contained in:
+244
@@ -0,0 +1,244 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509
|
||||
{
|
||||
// Token: 0x020018E4 RID: 6372
|
||||
[Token(Token = "0x20018E4")]
|
||||
[StructLayout(3)]
|
||||
public class Admissions : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AB15 RID: 43797 RVA: 0x0027F414 File Offset: 0x0027D614
|
||||
[Token(Token = "0x600AB15")]
|
||||
[Address(RVA = "0x27C8280", Offset = "0x27C6C80", VA = "0x1827C8280")]
|
||||
public static Admissions GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AB15)
|
||||
|
||||
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: 0x0600AB16 RID: 43798 RVA: 0x0027F468 File Offset: 0x0027D668
|
||||
[Token(Token = "0x600AB16")]
|
||||
[Address(RVA = "0x27C8A00", Offset = "0x27C7400", VA = "0x1827C8A00")]
|
||||
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: 0x0600AB17 RID: 43799 RVA: 0x0027F560 File Offset: 0x0027D760
|
||||
[Token(Token = "0x600AB17")]
|
||||
[Address(RVA = "0x27C8970", Offset = "0x27C7370", VA = "0x1827C8970")]
|
||||
public Admissions(GeneralName admissionAuthority, NamingAuthority namingAuthority, ProfessionInfo[] professionInfos)
|
||||
{
|
||||
this.admissionAuthority = admissionAuthority;
|
||||
this.namingAuthority = namingAuthority;
|
||||
DerSequence derSequence = new DerSequence(professionInfos);
|
||||
this.professionInfos = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x17001B0E RID: 6926
|
||||
// (get) Token: 0x0600AB18 RID: 43800 RVA: 0x0027F590 File Offset: 0x0027D790
|
||||
[Token(Token = "0x17001B0E")]
|
||||
public virtual GeneralName AdmissionAuthority
|
||||
{
|
||||
[Token(Token = "0x600AB18")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.admissionAuthority;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B0F RID: 6927
|
||||
// (get) Token: 0x0600AB19 RID: 43801 RVA: 0x0027F5A4 File Offset: 0x0027D7A4
|
||||
[Token(Token = "0x17001B0F")]
|
||||
public virtual NamingAuthority NamingAuthority
|
||||
{
|
||||
[Token(Token = "0x600AB19")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.namingAuthority;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AB1A RID: 43802 RVA: 0x0027F5B8 File Offset: 0x0027D7B8
|
||||
[Token(Token = "0x600AB1A")]
|
||||
[Address(RVA = "0x27C8480", Offset = "0x27C6E80", VA = "0x1827C8480")]
|
||||
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 != -1)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
return array;
|
||||
}
|
||||
}
|
||||
if (enumerator == 0)
|
||||
{
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
num++;
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AB1B RID: 43803 RVA: 0x0027F630 File Offset: 0x0027D830
|
||||
[Token(Token = "0x600AB1B")]
|
||||
[Address(RVA = "0x27C86E0", Offset = "0x27C70E0", VA = "0x1827C86E0", 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: 0x0400706C RID: 28780
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400706C")]
|
||||
private readonly GeneralName admissionAuthority;
|
||||
|
||||
// Token: 0x0400706D RID: 28781
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400706D")]
|
||||
private readonly NamingAuthority namingAuthority;
|
||||
|
||||
// Token: 0x0400706E RID: 28782
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400706E")]
|
||||
private readonly Asn1Sequence professionInfos;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user