a
This commit is contained in:
+182
@@ -0,0 +1,182 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F44 RID: 8004
|
||||
[Token(Token = "0x2001F44")]
|
||||
public class TimeStampTokenEvidence : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA7E RID: 51838 RVA: 0x002E61BC File Offset: 0x002E43BC
|
||||
[Token(Token = "0x600CA7E")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public TimeStampTokenEvidence(TimeStampAndCrl[] timeStampAndCrls)
|
||||
{
|
||||
this.timeStampAndCrls = timeStampAndCrls;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA7F RID: 51839 RVA: 0x002E61D8 File Offset: 0x002E43D8
|
||||
[Token(Token = "0x600CA7F")]
|
||||
[Address(RVA = "0x2AE93D0", Offset = "0x2AE81D0", VA = "0x182AE93D0")]
|
||||
public TimeStampTokenEvidence(TimeStampAndCrl timeStampAndCrl)
|
||||
{
|
||||
TimeStampAndCrl[] array = new TimeStampAndCrl[1];
|
||||
if (timeStampAndCrl != 0)
|
||||
{
|
||||
}
|
||||
array[0] = timeStampAndCrl;
|
||||
this.timeStampAndCrls = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA80 RID: 51840 RVA: 0x002E620C File Offset: 0x002E440C
|
||||
[Token(Token = "0x600CA80")]
|
||||
[Address(RVA = "0x2AE8FF0", Offset = "0x2AE7DF0", VA = "0x182AE8FF0")]
|
||||
private TimeStampTokenEvidence(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
Asn1Encodable asn1Encodable;
|
||||
TimeStampAndCrl[] array = new TimeStampAndCrl[asn1Encodable];
|
||||
this.timeStampAndCrls = array;
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (num < enumerator)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (enumerator == 0)
|
||||
{
|
||||
}
|
||||
if (enumerator == 0)
|
||||
{
|
||||
goto IL_B7;
|
||||
}
|
||||
TimeStampAndCrl[] array2 = this.timeStampAndCrls;
|
||||
num++;
|
||||
TimeStampAndCrl timeStampAndCrl;
|
||||
ContentInfo instance = ContentInfo.GetInstance(timeStampAndCrl);
|
||||
timeStampAndCrl.timeStamp = instance;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (asn1Encodable2 == (ulong)2L)
|
||||
{
|
||||
Asn1Sequence asn1Sequence;
|
||||
Asn1SequenceParser parser = asn1Sequence.Parser;
|
||||
CertificateList certificateList;
|
||||
timeStampAndCrl.crl = certificateList;
|
||||
if (asn1Sequence == 0)
|
||||
{
|
||||
goto IL_9F;
|
||||
}
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = num;
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_9F:
|
||||
throw new ArrayTypeMismatchException();
|
||||
IL_B7:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CA81 RID: 51841 RVA: 0x002E62D8 File Offset: 0x002E44D8
|
||||
[Token(Token = "0x600CA81")]
|
||||
[Address(RVA = "0x2AE8E10", Offset = "0x2AE7C10", VA = "0x182AE8E10")]
|
||||
public static TimeStampTokenEvidence GetInstance(Asn1TaggedObject tagged, bool isExplicit)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
Asn1Sequence instance2;
|
||||
for (;;)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(tagged, isExplicit);
|
||||
if (instance == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (instance == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (instance2 != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
instance2 = Asn1Sequence.GetInstance(instance);
|
||||
return new TimeStampTokenEvidence(instance2);
|
||||
}
|
||||
|
||||
// Token: 0x0600CA82 RID: 51842 RVA: 0x002E6314 File Offset: 0x002E4514
|
||||
[Token(Token = "0x600CA82")]
|
||||
[Address(RVA = "0x2AE8D10", Offset = "0x2AE7B10", VA = "0x182AE8D10")]
|
||||
public static TimeStampTokenEvidence GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new TimeStampTokenEvidence(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA83 RID: 51843 RVA: 0x002E6348 File Offset: 0x002E4548
|
||||
[Token(Token = "0x600CA83")]
|
||||
[Address(RVA = "0x2AE8F70", Offset = "0x2AE7D70", VA = "0x182AE8F70", Slot = "6")]
|
||||
public virtual TimeStampAndCrl[] ToTimeStampAndCrlArray()
|
||||
{
|
||||
TimeStampAndCrl[] array = this.timeStampAndCrls;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CA84 RID: 51844 RVA: 0x002E6364 File Offset: 0x002E4564
|
||||
[Token(Token = "0x600CA84")]
|
||||
[Address(RVA = "0x2AE8F10", Offset = "0x2AE7D10", VA = "0x182AE8F10", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA84)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.TimeStampTokenEvidence::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:DerSequence(var_0_0B, newobj:DerSequence(DerSequence::.ctor, ldfld:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.TimeStampAndCrl[][exp:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable[]](TimeStampTokenEvidence::timeStampAndCrls, ldloc:TimeStampTokenEvidence(this))))
|
||||
}
|
||||
|
||||
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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x040080E5 RID: 32997
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080E5")]
|
||||
private TimeStampAndCrl[] timeStampAndCrls;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user