oh dear
This commit is contained in:
+296
@@ -0,0 +1,296 @@
|
||||
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: 0x02001EF3 RID: 7923
|
||||
[Token(Token = "0x2001EF3")]
|
||||
public class RevocationValues : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C822 RID: 51234 RVA: 0x002DCDBC File Offset: 0x002DAFBC
|
||||
[Token(Token = "0x600C822")]
|
||||
[Address(RVA = "0x2848070", Offset = "0x2846E70", VA = "0x182848070")]
|
||||
public static RevocationValues GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C822)
|
||||
|
||||
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: 0x0600C823 RID: 51235 RVA: 0x002DCDEC File Offset: 0x002DAFEC
|
||||
[Token(Token = "0x600C823")]
|
||||
[Address(RVA = "0x2848840", Offset = "0x2847640", VA = "0x182848840")]
|
||||
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: 0x0600C824 RID: 51236 RVA: 0x002DCED4 File Offset: 0x002DB0D4
|
||||
[Token(Token = "0x600C824")]
|
||||
[Address(RVA = "0x2848780", Offset = "0x2847580", VA = "0x182848780")]
|
||||
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: 0x0600C825 RID: 51237 RVA: 0x002DCF14 File Offset: 0x002DB114
|
||||
[Token(Token = "0x600C825")]
|
||||
[Address(RVA = "0x28485B0", Offset = "0x28473B0", VA = "0x1828485B0")]
|
||||
public RevocationValues(IEnumerable crlVals, IEnumerable ocspVals, OtherRevVals otherRevVals)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C825)
|
||||
|
||||
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: 0x0600C826 RID: 51238 RVA: 0x002DCFA8 File Offset: 0x002DB1A8
|
||||
[Token(Token = "0x600C826")]
|
||||
[Address(RVA = "0x2847F20", Offset = "0x2846D20", VA = "0x182847F20")]
|
||||
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: 0x0600C827 RID: 51239 RVA: 0x002DD000 File Offset: 0x002DB200
|
||||
[Token(Token = "0x600C827")]
|
||||
[Address(RVA = "0x2848170", Offset = "0x2846F70", VA = "0x182848170")]
|
||||
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: 0x17001F4D RID: 8013
|
||||
// (get) Token: 0x0600C828 RID: 51240 RVA: 0x002DD058 File Offset: 0x002DB258
|
||||
[Token(Token = "0x17001F4D")]
|
||||
public OtherRevVals OtherRevVals
|
||||
{
|
||||
[Token(Token = "0x600C828")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.otherRevVals;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C829 RID: 51241 RVA: 0x002DD06C File Offset: 0x002DB26C
|
||||
[Token(Token = "0x600C829")]
|
||||
[Address(RVA = "0x28482C0", Offset = "0x28470C0", VA = "0x1828482C0", 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: 0x04007FA3 RID: 32675
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007FA3")]
|
||||
private readonly Asn1Sequence crlVals;
|
||||
|
||||
// Token: 0x04007FA4 RID: 32676
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007FA4")]
|
||||
private readonly Asn1Sequence ocspVals;
|
||||
|
||||
// Token: 0x04007FA5 RID: 32677
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007FA5")]
|
||||
private readonly OtherRevVals otherRevVals;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user