scripts
This commit is contained in:
+187
@@ -0,0 +1,187 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001967 RID: 6503
|
||||
[Token(Token = "0x2001967")]
|
||||
[StructLayout(3)]
|
||||
public class TimeStampTokenEvidence : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEA4 RID: 44708 RVA: 0x0028DCCC File Offset: 0x0028BECC
|
||||
[Token(Token = "0x600AEA4")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public TimeStampTokenEvidence(TimeStampAndCrl[] timeStampAndCrls)
|
||||
{
|
||||
this.timeStampAndCrls = timeStampAndCrls;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEA5 RID: 44709 RVA: 0x0028DCE8 File Offset: 0x0028BEE8
|
||||
[Token(Token = "0x600AEA5")]
|
||||
[Address(RVA = "0x1EE2FC0", Offset = "0x1EE19C0", VA = "0x181EE2FC0")]
|
||||
public TimeStampTokenEvidence(TimeStampAndCrl timeStampAndCrl)
|
||||
{
|
||||
TimeStampAndCrl[] array = new TimeStampAndCrl[1];
|
||||
if (timeStampAndCrl != 0)
|
||||
{
|
||||
}
|
||||
array[0] = timeStampAndCrl;
|
||||
this.timeStampAndCrls = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEA6 RID: 44710 RVA: 0x0028DD1C File Offset: 0x0028BF1C
|
||||
[Token(Token = "0x600AEA6")]
|
||||
[Address(RVA = "0x1EE2BB0", Offset = "0x1EE15B0", VA = "0x181EE2BB0")]
|
||||
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_BB;
|
||||
}
|
||||
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_A3;
|
||||
}
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = num;
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_A3:
|
||||
throw new ArrayTypeMismatchException();
|
||||
IL_BB:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AEA7 RID: 44711 RVA: 0x0028DDEC File Offset: 0x0028BFEC
|
||||
[Token(Token = "0x600AEA7")]
|
||||
[Address(RVA = "0x1EE29D0", Offset = "0x1EE13D0", VA = "0x181EE29D0")]
|
||||
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: 0x0600AEA8 RID: 44712 RVA: 0x0028DE28 File Offset: 0x0028C028
|
||||
[Token(Token = "0x600AEA8")]
|
||||
[Address(RVA = "0x1EE28D0", Offset = "0x1EE12D0", VA = "0x181EE28D0")]
|
||||
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: 0x0600AEA9 RID: 44713 RVA: 0x0028DE5C File Offset: 0x0028C05C
|
||||
[Token(Token = "0x600AEA9")]
|
||||
[Address(RVA = "0x1EE2B30", Offset = "0x1EE1530", VA = "0x181EE2B30", Slot = "6")]
|
||||
public virtual TimeStampAndCrl[] ToTimeStampAndCrlArray()
|
||||
{
|
||||
TimeStampAndCrl[] array = this.timeStampAndCrls;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AEAA RID: 44714 RVA: 0x0028DE78 File Offset: 0x0028C078
|
||||
[Token(Token = "0x600AEAA")]
|
||||
[Address(RVA = "0x1EE2AD0", Offset = "0x1EE14D0", VA = "0x181EE2AD0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEAA)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x040072A2 RID: 29346
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072A2")]
|
||||
private TimeStampAndCrl[] timeStampAndCrls;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user