scripts
This commit is contained in:
@@ -0,0 +1,237 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp
|
||||
{
|
||||
// Token: 0x020018D3 RID: 6355
|
||||
[Token(Token = "0x20018D3")]
|
||||
[StructLayout(3)]
|
||||
public class SingleResponse : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AACB RID: 43723 RVA: 0x0027DC78 File Offset: 0x0027BE78
|
||||
[Token(Token = "0x600AACB")]
|
||||
[Address(RVA = "0x27DF3B0", Offset = "0x27DDDB0", VA = "0x1827DF3B0")]
|
||||
public SingleResponse(CertID certID, CertStatus certStatus, DerGeneralizedTime thisUpdate, DerGeneralizedTime nextUpdate, X509Extensions singleExtensions)
|
||||
{
|
||||
this.nextUpdate = 0;
|
||||
this.certID = certID;
|
||||
this.thisUpdate = thisUpdate;
|
||||
this.singleExtensions = 0;
|
||||
this.certStatus = certStatus;
|
||||
}
|
||||
|
||||
// Token: 0x0600AACC RID: 43724 RVA: 0x0027DCB0 File Offset: 0x0027BEB0
|
||||
[Token(Token = "0x600AACC")]
|
||||
[Address(RVA = "0x27DF090", Offset = "0x27DDA90", VA = "0x1827DF090")]
|
||||
public SingleResponse(Asn1Sequence seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
CertID certID;
|
||||
this.certID = certID;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
CertStatus certStatus;
|
||||
this.certStatus = certStatus;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
if (parser3 == 0)
|
||||
{
|
||||
}
|
||||
if (parser3 != 0)
|
||||
{
|
||||
this.thisUpdate = parser3;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable <= (ulong)3L)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
if (parser4 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
X509Extensions x509Extensions;
|
||||
this.singleExtensions = x509Extensions;
|
||||
}
|
||||
|
||||
// Token: 0x0600AACD RID: 43725 RVA: 0x0027DD48 File Offset: 0x0027BF48
|
||||
[Token(Token = "0x600AACD")]
|
||||
[Address(RVA = "0x27DEB60", Offset = "0x27DD560", VA = "0x1827DEB60")]
|
||||
public static SingleResponse GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return SingleResponse.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600AACE RID: 43726 RVA: 0x0027DD64 File Offset: 0x0027BF64
|
||||
[Token(Token = "0x600AACE")]
|
||||
[Address(RVA = "0x27DEB80", Offset = "0x27DD580", VA = "0x1827DEB80")]
|
||||
public static SingleResponse GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AACE)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.SingleResponse BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.SingleResponse::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: 0x17001AFF RID: 6911
|
||||
// (get) Token: 0x0600AACF RID: 43727 RVA: 0x0027DDB8 File Offset: 0x0027BFB8
|
||||
[Token(Token = "0x17001AFF")]
|
||||
public CertID CertId
|
||||
{
|
||||
[Token(Token = "0x600AACF")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.certID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B00 RID: 6912
|
||||
// (get) Token: 0x0600AAD0 RID: 43728 RVA: 0x0027DDCC File Offset: 0x0027BFCC
|
||||
[Token(Token = "0x17001B00")]
|
||||
public CertStatus CertStatus
|
||||
{
|
||||
[Token(Token = "0x600AAD0")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.certStatus;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B01 RID: 6913
|
||||
// (get) Token: 0x0600AAD1 RID: 43729 RVA: 0x0027DDE0 File Offset: 0x0027BFE0
|
||||
[Token(Token = "0x17001B01")]
|
||||
public DerGeneralizedTime ThisUpdate
|
||||
{
|
||||
[Token(Token = "0x600AAD1")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.thisUpdate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B02 RID: 6914
|
||||
// (get) Token: 0x0600AAD2 RID: 43730 RVA: 0x0027DDF4 File Offset: 0x0027BFF4
|
||||
[Token(Token = "0x17001B02")]
|
||||
public DerGeneralizedTime NextUpdate
|
||||
{
|
||||
[Token(Token = "0x600AAD2")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.nextUpdate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B03 RID: 6915
|
||||
// (get) Token: 0x0600AAD3 RID: 43731 RVA: 0x0027DE08 File Offset: 0x0027C008
|
||||
[Token(Token = "0x17001B03")]
|
||||
public X509Extensions SingleExtensions
|
||||
{
|
||||
[Token(Token = "0x600AAD3")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.singleExtensions;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AAD4 RID: 43732 RVA: 0x0027DE1C File Offset: 0x0027C01C
|
||||
[Token(Token = "0x600AAD4")]
|
||||
[Address(RVA = "0x27DED80", Offset = "0x27DD780", VA = "0x1827DED80", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
CertID certID = this.certID;
|
||||
if (certID != 0)
|
||||
{
|
||||
}
|
||||
array[0] = certID;
|
||||
CertStatus certStatus = this.certStatus;
|
||||
if (certStatus != 0)
|
||||
{
|
||||
}
|
||||
array[1] = certStatus;
|
||||
DerGeneralizedTime derGeneralizedTime = this.thisUpdate;
|
||||
if (derGeneralizedTime != 0)
|
||||
{
|
||||
}
|
||||
array[2] = derGeneralizedTime;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.nextUpdate != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerGeneralizedTime derGeneralizedTime2 = this.nextUpdate;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, derGeneralizedTime2);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.singleExtensions != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
X509Extensions x509Extensions = this.singleExtensions;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, x509Extensions);
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006FD9 RID: 28633
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006FD9")]
|
||||
private readonly CertID certID;
|
||||
|
||||
// Token: 0x04006FDA RID: 28634
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006FDA")]
|
||||
private readonly CertStatus certStatus;
|
||||
|
||||
// Token: 0x04006FDB RID: 28635
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006FDB")]
|
||||
private readonly DerGeneralizedTime thisUpdate;
|
||||
|
||||
// Token: 0x04006FDC RID: 28636
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006FDC")]
|
||||
private readonly DerGeneralizedTime nextUpdate;
|
||||
|
||||
// Token: 0x04006FDD RID: 28637
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006FDD")]
|
||||
private readonly X509Extensions singleExtensions;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user