m
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: 0x02001F90 RID: 8080
|
||||
[Token(Token = "0x2001F90")]
|
||||
public class SingleResponse : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA73 RID: 51827 RVA: 0x002DE9EC File Offset: 0x002DCBEC
|
||||
[Token(Token = "0x600CA73")]
|
||||
[Address(RVA = "0x2F94A10", Offset = "0x2F93A10", VA = "0x182F94A10")]
|
||||
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: 0x0600CA74 RID: 51828 RVA: 0x002DEA24 File Offset: 0x002DCC24
|
||||
[Token(Token = "0x600CA74")]
|
||||
[Address(RVA = "0x2F946F0", Offset = "0x2F936F0", VA = "0x182F946F0")]
|
||||
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: 0x0600CA75 RID: 51829 RVA: 0x002DEABC File Offset: 0x002DCCBC
|
||||
[Token(Token = "0x600CA75")]
|
||||
[Address(RVA = "0x2F941C0", Offset = "0x2F931C0", VA = "0x182F941C0")]
|
||||
public static SingleResponse GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return SingleResponse.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CA76 RID: 51830 RVA: 0x002DEAD8 File Offset: 0x002DCCD8
|
||||
[Token(Token = "0x600CA76")]
|
||||
[Address(RVA = "0x2F941E0", Offset = "0x2F931E0", VA = "0x182F941E0")]
|
||||
public static SingleResponse GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA76)
|
||||
|
||||
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: 0x17001F9D RID: 8093
|
||||
// (get) Token: 0x0600CA77 RID: 51831 RVA: 0x002DEB2C File Offset: 0x002DCD2C
|
||||
[Token(Token = "0x17001F9D")]
|
||||
public CertID CertId
|
||||
{
|
||||
[Token(Token = "0x600CA77")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.certID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F9E RID: 8094
|
||||
// (get) Token: 0x0600CA78 RID: 51832 RVA: 0x002DEB40 File Offset: 0x002DCD40
|
||||
[Token(Token = "0x17001F9E")]
|
||||
public CertStatus CertStatus
|
||||
{
|
||||
[Token(Token = "0x600CA78")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.certStatus;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F9F RID: 8095
|
||||
// (get) Token: 0x0600CA79 RID: 51833 RVA: 0x002DEB54 File Offset: 0x002DCD54
|
||||
[Token(Token = "0x17001F9F")]
|
||||
public DerGeneralizedTime ThisUpdate
|
||||
{
|
||||
[Token(Token = "0x600CA79")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.thisUpdate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA0 RID: 8096
|
||||
// (get) Token: 0x0600CA7A RID: 51834 RVA: 0x002DEB68 File Offset: 0x002DCD68
|
||||
[Token(Token = "0x17001FA0")]
|
||||
public DerGeneralizedTime NextUpdate
|
||||
{
|
||||
[Token(Token = "0x600CA7A")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.nextUpdate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA1 RID: 8097
|
||||
// (get) Token: 0x0600CA7B RID: 51835 RVA: 0x002DEB7C File Offset: 0x002DCD7C
|
||||
[Token(Token = "0x17001FA1")]
|
||||
public X509Extensions SingleExtensions
|
||||
{
|
||||
[Token(Token = "0x600CA7B")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.singleExtensions;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA7C RID: 51836 RVA: 0x002DEB90 File Offset: 0x002DCD90
|
||||
[Token(Token = "0x600CA7C")]
|
||||
[Address(RVA = "0x2F943E0", Offset = "0x2F933E0", VA = "0x182F943E0", 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: 0x04007FD5 RID: 32725
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007FD5")]
|
||||
private readonly CertID certID;
|
||||
|
||||
// Token: 0x04007FD6 RID: 32726
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007FD6")]
|
||||
private readonly CertStatus certStatus;
|
||||
|
||||
// Token: 0x04007FD7 RID: 32727
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007FD7")]
|
||||
private readonly DerGeneralizedTime thisUpdate;
|
||||
|
||||
// Token: 0x04007FD8 RID: 32728
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007FD8")]
|
||||
private readonly DerGeneralizedTime nextUpdate;
|
||||
|
||||
// Token: 0x04007FD9 RID: 32729
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007FD9")]
|
||||
private readonly X509Extensions singleExtensions;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user