oh dear
This commit is contained in:
@@ -0,0 +1,235 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp
|
||||
{
|
||||
// Token: 0x02001EB0 RID: 7856
|
||||
[Token(Token = "0x2001EB0")]
|
||||
public class SingleResponse : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C6A5 RID: 50853 RVA: 0x002D6178 File Offset: 0x002D4378
|
||||
[Token(Token = "0x600C6A5")]
|
||||
[Address(RVA = "0x2BD54D0", Offset = "0x2BD42D0", VA = "0x182BD54D0")]
|
||||
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: 0x0600C6A6 RID: 50854 RVA: 0x002D61B0 File Offset: 0x002D43B0
|
||||
[Token(Token = "0x600C6A6")]
|
||||
[Address(RVA = "0x2BD51B0", Offset = "0x2BD3FB0", VA = "0x182BD51B0")]
|
||||
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: 0x0600C6A7 RID: 50855 RVA: 0x002D6248 File Offset: 0x002D4448
|
||||
[Token(Token = "0x600C6A7")]
|
||||
[Address(RVA = "0x2BD4C80", Offset = "0x2BD3A80", VA = "0x182BD4C80")]
|
||||
public static SingleResponse GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return SingleResponse.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C6A8 RID: 50856 RVA: 0x002D6264 File Offset: 0x002D4464
|
||||
[Token(Token = "0x600C6A8")]
|
||||
[Address(RVA = "0x2BD4CA0", Offset = "0x2BD3AA0", VA = "0x182BD4CA0")]
|
||||
public static SingleResponse GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C6A8)
|
||||
|
||||
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: 0x17001F00 RID: 7936
|
||||
// (get) Token: 0x0600C6A9 RID: 50857 RVA: 0x002D62B8 File Offset: 0x002D44B8
|
||||
[Token(Token = "0x17001F00")]
|
||||
public CertID CertId
|
||||
{
|
||||
[Token(Token = "0x600C6A9")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.certID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F01 RID: 7937
|
||||
// (get) Token: 0x0600C6AA RID: 50858 RVA: 0x002D62CC File Offset: 0x002D44CC
|
||||
[Token(Token = "0x17001F01")]
|
||||
public CertStatus CertStatus
|
||||
{
|
||||
[Token(Token = "0x600C6AA")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.certStatus;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F02 RID: 7938
|
||||
// (get) Token: 0x0600C6AB RID: 50859 RVA: 0x002D62E0 File Offset: 0x002D44E0
|
||||
[Token(Token = "0x17001F02")]
|
||||
public DerGeneralizedTime ThisUpdate
|
||||
{
|
||||
[Token(Token = "0x600C6AB")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.thisUpdate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F03 RID: 7939
|
||||
// (get) Token: 0x0600C6AC RID: 50860 RVA: 0x002D62F4 File Offset: 0x002D44F4
|
||||
[Token(Token = "0x17001F03")]
|
||||
public DerGeneralizedTime NextUpdate
|
||||
{
|
||||
[Token(Token = "0x600C6AC")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.nextUpdate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F04 RID: 7940
|
||||
// (get) Token: 0x0600C6AD RID: 50861 RVA: 0x002D6308 File Offset: 0x002D4508
|
||||
[Token(Token = "0x17001F04")]
|
||||
public X509Extensions SingleExtensions
|
||||
{
|
||||
[Token(Token = "0x600C6AD")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.singleExtensions;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C6AE RID: 50862 RVA: 0x002D631C File Offset: 0x002D451C
|
||||
[Token(Token = "0x600C6AE")]
|
||||
[Address(RVA = "0x2BD4EA0", Offset = "0x2BD3CA0", VA = "0x182BD4EA0", 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: 0x04007E1C RID: 32284
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007E1C")]
|
||||
private readonly CertID certID;
|
||||
|
||||
// Token: 0x04007E1D RID: 32285
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007E1D")]
|
||||
private readonly CertStatus certStatus;
|
||||
|
||||
// Token: 0x04007E1E RID: 32286
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007E1E")]
|
||||
private readonly DerGeneralizedTime thisUpdate;
|
||||
|
||||
// Token: 0x04007E1F RID: 32287
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007E1F")]
|
||||
private readonly DerGeneralizedTime nextUpdate;
|
||||
|
||||
// Token: 0x04007E20 RID: 32288
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007E20")]
|
||||
private readonly X509Extensions singleExtensions;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user