297 lines
14 KiB
C#
297 lines
14 KiB
C#
using System;
|
|
using System.Collections;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf
|
|
{
|
|
// Token: 0x02001FD3 RID: 8147
|
|
[Token(Token = "0x2001FD3")]
|
|
public class RevocationValues : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CBF0 RID: 52208 RVA: 0x002E55CC File Offset: 0x002E37CC
|
|
[Token(Token = "0x600CBF0")]
|
|
[Address(RVA = "0x2EB8980", Offset = "0x2EB7980", VA = "0x182EB8980")]
|
|
public static RevocationValues GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CBF0)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.RevocationValues BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.RevocationValues::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_2:
|
|
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.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: 0x0600CBF1 RID: 52209 RVA: 0x002E55FC File Offset: 0x002E37FC
|
|
[Token(Token = "0x600CBF1")]
|
|
[Address(RVA = "0x2EB9150", Offset = "0x2EB8150", VA = "0x182EB9150")]
|
|
private RevocationValues(Asn1Sequence seq)
|
|
{
|
|
for (;;)
|
|
{
|
|
int num = 0;
|
|
base..ctor();
|
|
if (seq != 0)
|
|
{
|
|
uint num2;
|
|
if (seq.GetEnumerator() != 0)
|
|
{
|
|
Asn1Object asn1Object;
|
|
if (asn1Object != 0)
|
|
{
|
|
OtherRevVals instance;
|
|
if (asn1Object != 0)
|
|
{
|
|
if (asn1Object != (ulong)1L)
|
|
{
|
|
goto IL_99;
|
|
}
|
|
instance = OtherRevVals.GetInstance(asn1Object);
|
|
this.otherRevVals = instance;
|
|
}
|
|
if (instance != 0)
|
|
{
|
|
BasicOcspResponse instance2 = BasicOcspResponse.GetInstance(instance.ToAsn1Object());
|
|
}
|
|
num2 += (uint)1;
|
|
if (num2 != (uint)0)
|
|
{
|
|
}
|
|
if (num != 0)
|
|
{
|
|
goto IL_B6;
|
|
}
|
|
if (num2 != (uint)(-1))
|
|
{
|
|
}
|
|
this.ocspVals = instance;
|
|
}
|
|
int num3;
|
|
CertificateList instance3 = CertificateList.GetInstance(num3);
|
|
num2 += (uint)1;
|
|
if (num2 != (uint)0)
|
|
{
|
|
}
|
|
if (num != 0)
|
|
{
|
|
goto IL_C8;
|
|
}
|
|
if (num2 != (uint)(-1))
|
|
{
|
|
}
|
|
this.crlVals = num2;
|
|
}
|
|
if (num2 + 1U != (uint)0)
|
|
{
|
|
}
|
|
if (num == 0)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return;
|
|
IL_99:
|
|
ArgumentException ex = new ArgumentException("Illegal tag in RevocationValues", "seq");
|
|
throw new NullReferenceException();
|
|
IL_B6:
|
|
throw new NullReferenceException();
|
|
IL_C8:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600CBF2 RID: 52210 RVA: 0x002E56E4 File Offset: 0x002E38E4
|
|
[Token(Token = "0x600CBF2")]
|
|
[Address(RVA = "0x2EB9090", Offset = "0x2EB8090", VA = "0x182EB9090")]
|
|
public RevocationValues(CertificateList[] crlVals, BasicOcspResponse[] ocspVals, OtherRevVals otherRevVals)
|
|
{
|
|
if (crlVals != 0)
|
|
{
|
|
DerSequence derSequence = new DerSequence(crlVals);
|
|
this.crlVals = derSequence;
|
|
}
|
|
if (ocspVals != 0)
|
|
{
|
|
DerSequence derSequence2 = new DerSequence(ocspVals);
|
|
this.ocspVals = derSequence2;
|
|
}
|
|
this.otherRevVals = otherRevVals;
|
|
}
|
|
|
|
// Token: 0x0600CBF3 RID: 52211 RVA: 0x002E5724 File Offset: 0x002E3924
|
|
[Token(Token = "0x600CBF3")]
|
|
[Address(RVA = "0x2EB8EC0", Offset = "0x2EB7EC0", VA = "0x182EB8EC0")]
|
|
public RevocationValues(IEnumerable crlVals, IEnumerable ocspVals, OtherRevVals otherRevVals)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CBF3)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.RevocationValues::.ctor(System.Collections.IEnumerable,System.Collections.IEnumerable,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.OtherRevVals)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_77:
|
|
stloc:ArgumentException(var_5_86, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Must contain only 'CertificateList' objects"), ldstr:string("crlVals")))
|
|
}
|
|
|
|
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: 0x0600CBF4 RID: 52212 RVA: 0x002E57B8 File Offset: 0x002E39B8
|
|
[Token(Token = "0x600CBF4")]
|
|
[Address(RVA = "0x2EB8830", Offset = "0x2EB7830", VA = "0x182EB8830")]
|
|
public CertificateList[] GetCrlVals()
|
|
{
|
|
Asn1Sequence asn1Sequence = this.crlVals;
|
|
Asn1Encodable asn1Encodable;
|
|
CertificateList[] array = new CertificateList[asn1Encodable];
|
|
int num = 0;
|
|
Asn1Sequence asn1Sequence2 = this.crlVals;
|
|
Asn1Encodable asn1Encodable2;
|
|
if (num < asn1Encodable2)
|
|
{
|
|
Asn1SequenceParser parser = this.crlVals.Parser;
|
|
CertificateList certificateList;
|
|
if (certificateList != 0)
|
|
{
|
|
}
|
|
num++;
|
|
array[0] = certificateList;
|
|
Asn1Sequence asn1Sequence3 = this.crlVals;
|
|
}
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x0600CBF5 RID: 52213 RVA: 0x002E5810 File Offset: 0x002E3A10
|
|
[Token(Token = "0x600CBF5")]
|
|
[Address(RVA = "0x2EB8A80", Offset = "0x2EB7A80", VA = "0x182EB8A80")]
|
|
public BasicOcspResponse[] GetOcspVals()
|
|
{
|
|
Asn1Sequence asn1Sequence = this.ocspVals;
|
|
Asn1Encodable asn1Encodable;
|
|
BasicOcspResponse[] array = new BasicOcspResponse[asn1Encodable];
|
|
int num = 0;
|
|
Asn1Sequence asn1Sequence2 = this.ocspVals;
|
|
Asn1Encodable asn1Encodable2;
|
|
if (num < asn1Encodable2)
|
|
{
|
|
Asn1SequenceParser parser = this.ocspVals.Parser;
|
|
BasicOcspResponse basicOcspResponse;
|
|
if (basicOcspResponse != 0)
|
|
{
|
|
}
|
|
num++;
|
|
array[0] = basicOcspResponse;
|
|
Asn1Sequence asn1Sequence3 = this.ocspVals;
|
|
}
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x17001FEA RID: 8170
|
|
// (get) Token: 0x0600CBF6 RID: 52214 RVA: 0x002E5868 File Offset: 0x002E3A68
|
|
[Token(Token = "0x17001FEA")]
|
|
public OtherRevVals OtherRevVals
|
|
{
|
|
[Token(Token = "0x600CBF6")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return this.otherRevVals;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CBF7 RID: 52215 RVA: 0x002E587C File Offset: 0x002E3A7C
|
|
[Token(Token = "0x600CBF7")]
|
|
[Address(RVA = "0x2EB8BD0", Offset = "0x2EB7BD0", VA = "0x182EB8BD0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
if (this.crlVals != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
Asn1Sequence asn1Sequence = this.crlVals;
|
|
int num;
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, asn1Sequence);
|
|
num = 0;
|
|
if (derTaggedObject != 0)
|
|
{
|
|
}
|
|
array[0] = derTaggedObject;
|
|
asn1EncodableVector.Add(array);
|
|
}
|
|
if (this.ocspVals != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
Asn1Sequence asn1Sequence2 = this.ocspVals;
|
|
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, asn1Sequence2);
|
|
if (derTaggedObject2 != 0)
|
|
{
|
|
}
|
|
array2[0] = derTaggedObject2;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
if (this.otherRevVals != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
|
Asn1Object asn1Object = this.otherRevVals.ToAsn1Object();
|
|
DerTaggedObject derTaggedObject3 = new DerTaggedObject(true, 2, asn1Object);
|
|
if (derTaggedObject3 != 0)
|
|
{
|
|
}
|
|
array3[0] = derTaggedObject3;
|
|
asn1EncodableVector.Add(array3);
|
|
}
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0400815C RID: 33116
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400815C")]
|
|
private readonly Asn1Sequence crlVals;
|
|
|
|
// Token: 0x0400815D RID: 33117
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400815D")]
|
|
private readonly Asn1Sequence ocspVals;
|
|
|
|
// Token: 0x0400815E RID: 33118
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400815E")]
|
|
private readonly OtherRevVals otherRevVals;
|
|
}
|
|
}
|